Fix tox errors in existing specs
[netvirt.git] / resources / tools / odl / ovs / test_flows.py
1 import logging
2 from pprint import pformat
3 import unittest
4 import flows
5 from flows import Flows
6 import request
7 import tables
8
9
10 class TestFlows(unittest.TestCase):
11     def setUp(self):
12         self.filename = "./flow_dumps.1.txt"
13         self.data = request.get_from_file(self.filename)
14         self.flows = Flows(self.data, logging.DEBUG)
15
16     def test_process_data(self):
17         pdata = self.flows.process_data()
18         # print "parsed data:\n{}".format(pformat(pdata))
19
20     def test_format_data(self):
21         fdata = self.flows.format_data()
22         # print "parsed data:\n{}".format(pformat(fdata))
23
24     def test_write_file(self):
25         self.flows.write_fdata("/tmp/flow_dumps.out.txt")
26
27     def test_get_table_name(self):
28         print "table: {} is the {} table".format(17, tables.get_table_name(17))
29
30 if __name__ == '__main__':
31     unittest.main()