def test_create_network_6(self): np = network_parser.NetworkParser(DUMMY_PATH) network = np.create_network self.assertTrue(network["3"].check_link("3", "2"))
def test_create_network_5(self): np = network_parser.NetworkParser(DUMMY_PATH) network = np.create_network self.assertFalse(network["1"].check_link("2", "3"))
def test_create_network_1(self): np = network_parser.NetworkParser(DUMMY_PATH) network = np.create_network self.assertAlmostEqual(3, len(network.keys()))
def test__NetworkParser_2(self): np = network_parser.NetworkParser(DUMMY_PATH) self.assertEqual({"1", "2", "3"}, np.switches)
def test__NetworkParser_1(self): np = network_parser.NetworkParser(DUMMY_PATH) self.assertEqual({("1", "2"), ("2", "3")}, np.links)
def __create_network_parser(self, network_file_path): return network_parser.NetworkParser(network_file_path)