Example #1
0
 def test_validDateArg9_validTime(self):
     shell = ShellAssistCmd()
     shell.current_date = date(2015, 5, 25)
     target_date = date(2015, 5, 5)
     go = Go(shell, '5')
     parsed_time = go.parse()
     self.assertEqual(parsed_time, target_date)
Example #2
0
 def do_go(self, arg):
     go = Go(self, arg)
     go.execute()
Example #3
0
 def test_validDateArg1_validTime(self):
     shell = ShellAssistCmd()
     target_date = date(2015, 10, 25)
     go = Go(shell, '10/25/2015')
     parsed_time = go.parse()
     self.assertEqual(parsed_time, target_date)