Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 5d8a5b4

Browse files
committed
Removing test of random xid from header class.
The responsibility of randomizing XIDs was delegated to GenericMessage class.
1 parent 1486700 commit 5d8a5b4

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

tests/v0x01/test_common/test_header.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,3 @@ def test_unpack(self):
4444
self.assertEqual(self.message.version, 1)
4545

4646
f.close()
47-
48-
@patch('pyof.v0x01.common.header.randint')
49-
def test_random_xid(self, m):
50-
"""Each Header instantiations without xid should call randint."""
51-
Header(), Header() # noqa
52-
self.assertEqual(m.call_count, 2)

0 commit comments

Comments
 (0)