From 2b608ecffc14395bfc560a235cc291edc3c5cc62 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 11 Jun 2016 23:49:11 +0200 Subject: Refactoring, dicover_from_root -> _from_gateway. Also calls compute_neighbourhood. --- tests/test_discovery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_discovery.py b/tests/test_discovery.py index d89d6f6..35600ae 100755 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -19,10 +19,10 @@ class TestDiscovery(unittest.TestCase): ('SW_PI_EGL', '172.16.30.27'), ('SW_Eglise_ESTANCARBON', '172.16.30.38'), ]) - self.discovery.discover_from_root(data.Equipment('stg', '172.16.0.254')) - self.discovery.compute_neighbourhood() + self.discovery.discover_from_gateway(data.Equipment('stg', '172.16.0.254', 'eth1')) # self.assertEqual(self.ref_net.get_equipment_list_sorted(), list(self.discovery.net.get_equipment_list_sorted())) - print(self.discovery.net) # <----- ya un gros print ici qui affiche... tout. +# print(self.discovery.net) # <----- ya un gros print ici qui affiche... tout. + self.discovery.net.print_tree() if __name__ == '__main__': unittest.main() -- cgit v1.1