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