def test_get_interface_bridged_time(self): port = self.port_fixture.br_port t1 = bridge_lib.get_interface_bridged_time(port) self.bridge.delif(port) self.bridge.addif(port) t2 = bridge_lib.get_interface_bridged_time(port) self.assertIsNotNone(t1) self.assertIsNotNone(t2) self.assertGreater(t2, t1)
def test_get_interface_bridged_time(self): port = self.port_fixture.br_port t1 = bridge_lib.get_interface_bridged_time(port) self.bridge.delif(port) self.bridge.addif(port) t2 = bridge_lib.get_interface_bridged_time(port) self.assertIsNotNone(t1) self.assertIsNotNone(t2) self.assertGreaterEqual(t2, t1)
def get_devices_modified_timestamps(self, devices): return {d: bridge_lib.get_interface_bridged_time(d) for d in devices}