Esempio n. 1
0
 def test_various_invalid_times(self, time):
     """Ensure that invalid times throw an exception."""
     with pytest.raises(ValueError):
         helpers.parse_time(time)
Esempio n. 2
0
 def test_various_invalid_times(self, time):
     """Ensure that invalid times throw an exception."""
     with pytest.raises(ValueError):
         helpers.parse_time(time)
Esempio n. 3
0
 def test_various_times(self, time, expectation):
     """Make sure that given times are parsed as expected."""
     assert helpers.parse_time(time) == expectation
Esempio n. 4
0
 def test_various_times(self, time, expectation):
     """Make sure that given times are parsed as expected."""
     assert helpers.parse_time(time) == expectation