mirror of https://github.com/conqp/rcon
2 changed files with 18 additions and 0 deletions
@ -0,0 +1 @@ |
|||||
|
"""Unit tests.""" |
@ -0,0 +1,17 @@ |
|||||
|
"""Test the BattlEye protocol.""" |
||||
|
|
||||
|
from unittest import TestCase |
||||
|
|
||||
|
from rcon.battleye.proto import Header |
||||
|
|
||||
|
|
||||
|
HEADER = Header(920575337, 0x00) |
||||
|
BYTES = b'BEi\xdd\xde6\xff\x00' |
||||
|
|
||||
|
|
||||
|
class TestHeader(TestCase): |
||||
|
"""Test header object.""" |
||||
|
|
||||
|
def test_header_from_bytes(self): |
||||
|
"""Tests header object parsing.""" |
||||
|
self.assertEqual(Header.from_bytes(BYTES), HEADER) |
Loading…
Reference in new issue