def test_day_to_string(self): """Test if day_to_string is behaving correctly.""" assert binary_sensor.day_to_string(0) == "mon" assert binary_sensor.day_to_string(1) == "tue" assert binary_sensor.day_to_string(7) == "holiday" assert binary_sensor.day_to_string(8) is None
def test_day_to_string(self): """Test if day_to_string is behaving correctly.""" assert day_to_string(0) == 'mon' assert day_to_string(1) == 'tue' assert day_to_string(7) == 'holiday' assert day_to_string(8) is None