Refactor Model class
[netvirt.git] / resources / tools / odltools / odltools / netvirt / tests / test_show.py
1 import logging
2 import unittest
3
4 from odltools import logg
5 from odltools.netvirt import show
6 from odltools.netvirt import tests
7
8
9 class TestShow(unittest.TestCase):
10     # TODO: capture stdout and check for list of tables.
11
12     def setUp(self):
13         logg.Logger(logging.INFO, logging.INFO)
14         self.args = tests.Args(path=tests.get_resources_path())
15
16     def test_show_elan_instances(self):
17         show.show_elan_instances(self.args)
18
19     def test_show_groups(self):
20         show.show_groups(self.args)
21
22     def test_show_flows_all(self):
23         self.args.flowtype = "all"
24         self.args.pretty_print = True
25         show.show_flows(self.args)
26
27     def test_show_stale_bindings(self):
28         show.show_stale_bindings(self.args)
29
30     def test_show_tables(self):
31         show.show_tables(self.args)
32
33 if __name__ == '__main__':
34     unittest.main()