Example #1
0
 def test_equals_2(self):
     self.assertEqual(date_to_mins('02/29/2016'), 86400)
Example #2
0
 def test_equals(self):
     self.assertEqual(date_to_mins('02/10/2016'), 59040)
Example #3
0
 def test_equals_4(self):
     self.assertEqual(date_to_mins('05/31/2016'), 218880)
Example #4
0
 def test_equals_5(self):
     self.assertEqual(date_to_mins('invalid date!'), -1)
Example #5
0
 def test_equals_3(self):
     self.assertEqual(date_to_mins('04/21/2016'), 161280)