Exemple #1
0
    def test_horario1am_menor_horario2pm(self):

        result = t1.minutos(10, 20, 'am', 10, 30, 'pm')
        self.assertEqual(result, 730)
Exemple #2
0
    def test_horario1pm_maior_horario2am(self):

        result = t1.minutos(10, 20, 'pm', 10, 10, 'am')
        self.assertEqual(result, 710)
Exemple #3
0
    def test_minutos2_maior_59(self):

        result = t1.minutos(10, 10, 'pm', 10, 60, 'pm')
        self.assertEqual(result, -1)
Exemple #4
0
    def test_minutos2_menor_0(self):

        result = t1.minutos(10, 10, 'pm', 10, -1, 'pm')
        self.assertEqual(result, -1)
Exemple #5
0
    def test_horario2_maior_11(self):

        result = t1.minutos(10, 10, 'pm', 12, 10, 'pm')
        self.assertEqual(result, -1)
Exemple #6
0
    def test_horario2_menor_0(self):

        result = t1.minutos(10, 10, 'pm', -1, 10, 'pm')
        self.assertEqual(result, -1)