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)
예제 #5
0
    def test_requires_at_least_minutes(self):
        result = from_formated_to_seconds('23')

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

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

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

        self.assertEqual(result, 23)