def test_spell_error(): Lights = cli.LightTester(10) Lights.apply("turn on", 5, 5, 9, 9) Lights.apply("tuzn of", 5, 5, 9, 9) assert Lights.count() > 5
def test_switch(): Lights = cli.LightTester(10) Lights.apply("switch", 0, 0, 9, 9) assert Lights.count() == 100
def test_count(): Lights = cli.LightTester(5) Lights.lights[0][0] = True assert Lights.count() == 1
def test_turn_on(): Lights = cli.LightTester(10) Lights.apply("turn on", 3, 3, 9, 9) assert Lights.count() > 5
def test_class(): Lights = cli.LightTester(20) assert len(Lights.lights) == 20