summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2016-06-11 23:49:11 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2016-06-11 23:49:11 +0200
commit2b608ecffc14395bfc560a235cc291edc3c5cc62 (patch)
tree4b4314481d70b21d084a955ec2099bb3cd3cfc64 /tests
parentbe6e1940eab67c48d1da077ad792639ed4f45676 (diff)
downloadhaircontrol-2b608ecffc14395bfc560a235cc291edc3c5cc62.zip
haircontrol-2b608ecffc14395bfc560a235cc291edc3c5cc62.tar.gz
haircontrol-2b608ecffc14395bfc560a235cc291edc3c5cc62.tar.bz2
Refactoring, dicover_from_root -> _from_gateway. Also calls compute_neighbourhood.HEADmaster
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_discovery.py6
1 files changed, 3 insertions, 3 deletions
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()