test and lint
This commit is contained in:
@@ -8,7 +8,7 @@ async def test():
|
||||
assert(response == "HOSTJOIN:")
|
||||
await ws.send("HOST:")
|
||||
response = await ws.recv()
|
||||
assert(re.match(r"(\d|[a-f]){6}", response))
|
||||
assert(re.match(r"CODE: [a-f\d]{6}", response))
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(test())
|
||||
print("All tests passed")
|
||||
|
||||
Reference in New Issue
Block a user