def test_split_in_to_working_hours_is_not_implemented_yet(self): """testing if a NotimplementedError will be raised when the split_in_to_working_hours() method is called """ with self.assertRaises(NotImplementedError): wh = WorkingHours() start = datetime.datetime.now() end = start + datetime.timedelta(days=10) wh.split_in_to_working_hours(start, end)
def test_split_in_to_working_hours_is_not_implemented_yet(self): """testing if a NotimplementedError will be raised when the split_in_to_working_hours() method is called """ with self.assertRaises(NotImplementedError): wh = WorkingHours() start = datetime.datetime.now() end = start + datetime.timedelta(days=10) wh.split_in_to_working_hours(start, end)
def test_split_in_to_working_hours_is_not_implemented_yet(): """testing if a NotimplementedError will be raised when the split_in_to_working_hours() method is called """ with pytest.raises(NotImplementedError): wh = WorkingHours() import datetime import pytz start = datetime.datetime.now(pytz.utc) end = start + datetime.timedelta(days=10) wh.split_in_to_working_hours(start, end)