def test_no_match(self):
     input_data = {}
     input_data['date'] = [DATE]
     input_data['tail_n_1_rhn_taskomatic_daemon'] = [LINE % (TIME_RECENT, TIME_RECENT2)]
     self.assertEqual(None, sat5_taskomatic_working.main(input_data))
     input_data = {}
     input_data['date'] = [DATE]
     input_data['tail_n_1_rhn_taskomatic_daemon'] = [LINE % (TIME_FUTURE, TIME_FUTURE2)]
     self.assertEqual(None, sat5_taskomatic_working.main(input_data))
Esempio n. 2
0
 def test_no_match(self):
     input_data = {}
     input_data['date'] = [DATE]
     input_data['tail_n_1_rhn_taskomatic_daemon'] = [
         LINE % (TIME_RECENT, TIME_RECENT2)
     ]
     self.assertEqual(None, sat5_taskomatic_working.main(input_data))
     input_data = {}
     input_data['date'] = [DATE]
     input_data['tail_n_1_rhn_taskomatic_daemon'] = [
         LINE % (TIME_FUTURE, TIME_FUTURE2)
     ]
     self.assertEqual(None, sat5_taskomatic_working.main(input_data))
Esempio n. 3
0
 def test_match(self):
     input_data = {}
     input_data['date'] = [DATE]
     input_data['tail_n_1_rhn_taskomatic_daemon'] = [
         LINE % (TIME_OLD, TIME_OLD2)
     ]
     expected = {'AGE': 431773.0, 'LAST': '2015-12-15 08:05:14'}
     self.assertEqual(expected, sat5_taskomatic_working.main(input_data))
 def test_match(self):
     input_data = {}
     input_data['date'] = [DATE]
     input_data['tail_n_1_rhn_taskomatic_daemon'] = [LINE % (TIME_OLD, TIME_OLD2)]
     expected = {'AGE': 431773.0, 'LAST': '2015-12-15 08:05:14'}
     self.assertEqual(expected, sat5_taskomatic_working.main(input_data))