def test_requires_at_least_minutes(self):
        result = from_formated_to_seconds('23')

        self.assertEqual(result, False)
    def test_converts_minutes(self):
        result = from_formated_to_seconds('2:23')

        self.assertEqual(result, 143)
    def test_converts_hours(self):
        result = from_formated_to_seconds('1:0:23')

        self.assertEqual(result, 3623)
    def test_converts_seconds(self):
        result = from_formated_to_seconds('0:23')

        self.assertEqual(result, 23)
Beispiel #5
0
    def test_requires_at_least_minutes(self):
        result = from_formated_to_seconds('23')

        self.assertEqual(result, False)
Beispiel #6
0
    def test_converts_hours(self):
        result = from_formated_to_seconds('1:0:23')

        self.assertEqual(result, 3623)
Beispiel #7
0
    def test_converts_minutes(self):
        result = from_formated_to_seconds('2:23')

        self.assertEqual(result, 143)
Beispiel #8
0
    def test_converts_seconds(self):
        result = from_formated_to_seconds('0:23')

        self.assertEqual(result, 23)