コード例 #1
0
ファイル: test_ipbus.py プロジェクト: kratsg/ironman
 def test_bad_ipbus_version(self):
     with pytest.raises(ValidationError) as e:
         PacketHeaderStruct.parse(TESTPACKETS['wrong protocol version'])
コード例 #2
0
ファイル: test_ipbus.py プロジェクト: begyy/ironman
 def test_bad_ipbus_version(self):
     with pytest.raises(ValidationError) as e:
         PacketHeaderStruct.parse(TESTPACKETS['wrong protocol version'])
コード例 #3
0
ファイル: test_ipbus.py プロジェクト: kratsg/ironman
 def test_bad_ipbus_packet_header(self, data):
     """ This test just runs over a technically valid, yet incomplete ipbus packet header
     """
     with pytest.raises(FieldError) as e:
         PacketHeaderStruct.parse(data)
コード例 #4
0
ファイル: test_ipbus.py プロジェクト: begyy/ironman
 def test_bad_ipbus_packet_header(self, data):
     """ This test just runs over a technically valid, yet incomplete ipbus packet header
     """
     with pytest.raises(StreamError) as e:
         PacketHeaderStruct.parse(data)