def CheckFlow(self):
    netstat = aff4.FACTORY.Open(self.client_id.Add(self.test_output_path),
                                mode="r", token=self.token)
    self.assertIsInstance(netstat, aff4.Network)
    connections = netstat.Get(netstat.Schema.CONNECTIONS)
    self.assertGreater(len(connections), 5)
    # There should be at least two local IPs.
    num_ips = set([k.local_address.ip for k in connections])
    self.assertGreater(len(num_ips), 1)
    # There should be at least two different connection states.
    num_states = set([k.state for k in connections])
    # This is a known issue on CentOS so we just warn about it.
    if 1 <= len(num_states):
      logging.warning("Only received one distinct connection state!")
dataset/ETHPy150Open google/grr/grr/endtoend_tests/network.py/TestNetstat.CheckFlow/swapped operands of `<=`