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