2 from pprint import pformat
5 from flows import Flows
10 class TestFlows(unittest.TestCase):
12 self.filename = "./flow_dumps.1.txt"
13 self.data = request.get_from_file(self.filename)
14 self.flows = Flows(self.data, logging.DEBUG)
16 def test_process_data(self):
17 pdata = self.flows.process_data()
18 # print "parsed data:\n{}".format(pformat(pdata))
20 def test_format_data(self):
21 fdata = self.flows.format_data()
22 # print "parsed data:\n{}".format(pformat(fdata))
24 def test_write_file(self):
25 self.flows.write_fdata("/tmp/flow_dumps.out.txt")
27 def test_get_table_name(self):
28 print "table: {} is the {} table".format(17, tables.get_table_name(17))
30 if __name__ == '__main__':