Exemple #1
0
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
Exemple #2
0
def test_switch():
    Lights = cli.LightTester(10)
    Lights.apply("switch", 0, 0, 9, 9)
    assert Lights.count() == 100
Exemple #3
0
def test_count():
    Lights = cli.LightTester(5)
    Lights.lights[0][0] = True
    assert Lights.count() == 1
Exemple #4
0
def test_turn_on():
    Lights = cli.LightTester(10)
    Lights.apply("turn on", 3, 3, 9, 9)
    assert Lights.count() > 5
Exemple #5
0
def test_class():
    Lights = cli.LightTester(20)
    assert len(Lights.lights) == 20