def test_tcp_states(self): nc = NetworkConnection() nc.source_tcp_state = "LISTEN" nc.destination_tcp_state = "ESTABLISHED" nc2 = round_trip(nc) self.assertEqual(nc.to_dict(), nc2.to_dict())
def test_tcp_states(self): nc = NetworkConnection() nc.source_tcp_state = "LISTEN" nc.destination_tcp_state = "ESTABLISHED" nc2 = round_trip(nc) self.assertEqual(nc.to_dict(), nc2.to_dict())