Example #1
0
 def test_agent20080318(self):
     files=['/tmp/agent_result_20080318',]
     data=idcview.convfiles(files)
     self.assertTrue(isinstance(data,list))
     self.assertEqual(data[0][0],'22.12.231.1')
     self.assertEqual(data[0][1],0)
     self.assertEqual(data[5][0],'202.106.0.20')
     self.assertEqual(data[5][1],Decimal('39.8156'))
Example #2
0
 def test_agent20080318(self):
     files = [
         '/tmp/agent_result_20080318',
     ]
     data = idcview.convfiles(files)
     self.assertTrue(isinstance(data, list))
     self.assertEqual(data[0][0], '22.12.231.1')
     self.assertEqual(data[0][1], 0)
     self.assertEqual(data[5][0], '202.106.0.20')
     self.assertEqual(data[5][1], Decimal('39.8156'))
Example #3
0
 def test_convfiles(self):
     files = ['/tmp/10.10.10.10_20080317', '/tmp/11.11.11.11_20080317']
     data = idcview.convfiles(files)
     self.assertTrue(isinstance(data, list))
     print data
Example #4
0
 def test_convfiles(self):
     files=['/tmp/10.10.10.10_20080317','/tmp/11.11.11.11_20080317']
     data=idcview.convfiles(files)
     self.assertTrue(isinstance(data,list))
     print data