示例#1
0
 def test_from_bytes_failure(self):
     with pytest.raises(ValueError):
         FetcherMessage.from_bytes(b"random bytes")
示例#2
0
 def test_from_bytes_success(self, message):
     assert FetcherMessage.from_bytes(bytes(message) + 42 * b"*") == message