Example #1
0
 def test_date_is_eq_5(self):
     """date_is_eq: test de comparacion incorrecta por formato"""
     d1 = '2017-01-01 00:00:00'
     d2 = '2017-01-01 00:00:00'
     formatter = '%d/%m/%Y %H:%M:%S'
     test_list = list()
     test_list.append(d1)
     test_list.append(d2)
     test_list.append(formatter)
     op.date_is_eq(test_list)
Example #2
0
 def test_date_is_eq_3(self):
     """date_is_eq: test de comparacion incorrecta por time"""
     d1 = '2017-01-01 00:00:00'
     d2 = '2017-01-01 11:00:00'
     test_list = list()
     test_list.append(d1)
     test_list.append(d2)
     res = op.date_is_eq(test_list)
     assert_false(res)
Example #3
0
 def test_date_is_eq_1(self):
     """date_is_eq: test de comparacion correcta"""
     d1 = '2017-01-01 00:00:00'
     d2 = '2017-01-01 00:00:00'
     test_list = list()
     test_list.append(d1)
     test_list.append(d2)
     res = op.date_is_eq(test_list)
     assert_true(res)
Example #4
0
 def test_date_is_eq_4(self):
     """date_is_eq: test de comparacion correcta con otro formato"""
     d1 = '01/01/2017 00:00:00'
     d2 = '01/01/2017 00:00:00'
     formatter = '%d/%m/%Y %H:%M:%S'
     test_list = list()
     test_list.append(d1)
     test_list.append(d2)
     test_list.append(formatter)
     res = op.date_is_eq(test_list)
     assert_true(res)