4 from odltools import logg
5 from odltools.netvirt import show
6 from odltools.netvirt import tests
9 class TestShow(unittest.TestCase):
10 # TODO: capture stdout and check for list of tables.
13 logg.Logger(logging.INFO, logging.INFO)
14 self.args = tests.Args(path=tests.get_resources_path())
16 def test_show_elan_instances(self):
17 show.show_elan_instances(self.args)
19 def test_show_groups(self):
20 show.show_groups(self.args)
22 def test_show_flows_all(self):
23 self.args.flowtype = "all"
24 self.args.pretty_print = True
25 show.show_flows(self.args)
27 def test_show_stale_bindings(self):
28 show.show_stale_bindings(self.args)
30 def test_show_tables(self):
31 show.show_tables(self.args)
33 if __name__ == '__main__':