From afe9e90202f438e93979818b6969eccbff007894 Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Mon, 14 Feb 2022 11:48:47 +0100 Subject: [PATCH] Add __bytes__ test --- tests/test_battleye_proto.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_battleye_proto.py b/tests/test_battleye_proto.py index 1569898..8dde0b5 100644 --- a/tests/test_battleye_proto.py +++ b/tests/test_battleye_proto.py @@ -15,3 +15,7 @@ class TestHeader(TestCase): def test_header_from_bytes(self): """Tests header object parsing.""" self.assertEqual(Header.from_bytes(BYTES), HEADER) + + def test_header_to_bytes(self): + """Tests header object parsing.""" + self.assertEqual(bytes(HEADER), BYTES)