mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-06 03:51:23 +08:00
fix tests.
This commit is contained in:
@@ -47,8 +47,6 @@ class TestMinecraftQuerier:
|
|||||||
response = self.querier.read_query()
|
response = self.querier.read_query()
|
||||||
conn_bytes = self.querier.connection.flush()
|
conn_bytes = self.querier.connection.flush()
|
||||||
|
|
||||||
assert response.motd == b'\x00*K\xc3\x95'.decode()
|
|
||||||
# Make sure the order is correct
|
|
||||||
assert response.raw['game_id'] == 'MINECRAFT'
|
assert response.raw['game_id'] == 'MINECRAFT'
|
||||||
assert response.motd == "\x00*KÕ"
|
assert response.motd == "\x00*KÕ"
|
||||||
|
|
||||||
@@ -61,8 +59,6 @@ class TestMinecraftQuerier:
|
|||||||
response = self.querier.read_query()
|
response = self.querier.read_query()
|
||||||
conn_bytes = self.querier.connection.flush()
|
conn_bytes = self.querier.connection.flush()
|
||||||
|
|
||||||
assert response.motd == "\x00other"
|
|
||||||
# Make sure the order is correct
|
|
||||||
assert response.raw["game_id"] == "MINECRAFT"
|
assert response.raw["game_id"] == "MINECRAFT"
|
||||||
assert response.motd == "\x00other" # "\u2a00other" is actually what is expected,
|
assert response.motd == "\x00other" # "\u2a00other" is actually what is expected,
|
||||||
# but the query protocol for vanilla has a bug when it comes to unicode handling.
|
# but the query protocol for vanilla has a bug when it comes to unicode handling.
|
||||||
|
|||||||
Reference in New Issue
Block a user