summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/integration/test_accesslist.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/test_accesslist.py b/tests/integration/test_accesslist.py
index e963bcc..41ff654 100644
--- a/tests/integration/test_accesslist.py
+++ b/tests/integration/test_accesslist.py
@@ -48,10 +48,10 @@ class Blacklist(TrackerTestCase):
48 ) 48 )
49 answer = self.tracker.udp_raw(request) 49 answer = self.tracker.udp_raw(request)
50 self.assertIsNotNone(answer) 50 self.assertIsNotNone(answer)
51 self.assertEqual(len(answer), 8, "header only, no interval or counts") 51 action, transaction = struct.unpack(">II", answer[:8])
52 action, transaction = struct.unpack(">II", answer) 52 self.assertEqual(action, 3, "action 3 is the error packet")
53 self.assertEqual(action, 1, "it still claims to be an announce")
54 self.assertEqual(transaction, 7) 53 self.assertEqual(transaction, 7)
54 self.assertIn(b"not authorized", answer[8:])
55 55
56 def test_a_blocked_hash_is_not_stored_when_it_arrives_over_udp(self): 56 def test_a_blocked_hash_is_not_stored_when_it_arrives_over_udp(self):
57 sock, connection_id = self.tracker.udp_connect() 57 sock, connection_id = self.tracker.udp_connect()