Ejemplo n.º 1
0
 def test_date_is_lte_5(self):
     """date_is_lte: 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_lte(test_list)
Ejemplo n.º 2
0
 def test_date_is_lte_7(self):
     """date_is_lte: test de comparacion correcta con fechas inversas"""
     d1 = '2017-01-31 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_lte(test_list)
     assert_false(res)
Ejemplo n.º 3
0
 def test_date_is_lte_6(self):
     """date_is_lte: test de comparacion incorrecta con fechas iguales"""
     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_lte(test_list)
     assert_true(res)
Ejemplo n.º 4
0
 def test_date_is_lte_3(self):
     """date_is_lte: test de comparacion incorrecta por time"""
     d1 = '2017-01-01 11:00:00'
     d2 = '2017-01-01 00:00:00'
     test_list = list()
     test_list.append(d1)
     test_list.append(d2)
     res = op.date_is_lte(test_list)
     assert_false(res)
Ejemplo n.º 5
0
 def test_date_is_lte_1(self):
     """date_is_lte: test de comparacion correcta"""
     d1 = '2017-01-01 00:00:00'
     d2 = '2017-01-31 00:00:00'
     test_list = list()
     test_list.append(d1)
     test_list.append(d2)
     res = op.date_is_lte(test_list)
     assert_true(res)
Ejemplo n.º 6
0
 def test_date_is_lte_4(self):
     """date_is_lte: test de comparacion correcta con otro formato"""
     d1 = '01/01/2017 00:00:00'
     d2 = '01/01/2017 11: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_lte(test_list)
     assert_true(res)