Beispiel #1
0
def test_pattern():
    # test the pattern matching is parsing the line correctly
    seater = Seater()
    res = seater.get_cmd("occupy 957,736 through 977,890")
    assert res == ('occupy', 957, 736, 977, 890)
def test_pattern():
    # test the pattern matching is parsing the line correctly
    seater = Seater()
    res = seater.get_cmd("occupy 957,736 through 977,890")
    assert res == ('occupy', 957, 736, 977, 890)
Beispiel #3
0
def test_occupy4():
    seater = Seater()
    res = seater.get_cmd("occupy 950,950 through 952,952")
    assert seater.number_occupied() == 9
def test_occupy4():
    seater = Seater()
    res = seater.get_cmd("occupy 950,950 through 952,952")
    assert seater.number_occupied() == 9