예제 #1
0
def test_total(file, expected):
    con = control.Control(file)
    plat = con.makeplateau()
    roverlist = con.makerovers()
    reportlist = []
    for rov in roverlist:
        rov.makeitso()
        rep = report.Report(plat, rov)
        reportlist.append(rep.message())
    assert reportlist == expected
예제 #2
0
def test_makeplateau(file, expected):
    con = control.Control(file)
    plat = con.makeplateau()
    assert isinstance(plat, expected)
예제 #3
0
def test_makerovers(file, expected):
    con = control.Control(file)
    rovlist = con.makerovers()
    for rov in rovlist:
        assert isinstance(rov, expected)
예제 #4
0
def test_grid_correct(file, expected):
    con = control.Control(file)
    assert con.grid == expected
예제 #5
0
def test_firstline(file, expected):
    con = control.Control(file)
    assert con.mission == expected
예제 #6
0
def test_checker(file, mission):
    con = control.Control(file)
    con.mission = mission
    with pytest.raises(ValueError):
        assert con.checker()
예제 #7
0
def test_file_open(file, expected):
    con = control.Control(file)
    assert con.opener(file) == expected