def test_is_open_fails_with_just_date(): with pytest.raises(ValueError): is_open(date(2015, 3, 14))
def test_is_open(now, expected_open, mock_hours, mock_today): assert is_open(now) == expected_open