Ejemplo n.º 1
0
def test_checkStatesAreValid_RaisesExceptionForInvalidNumbers():
    fileReader = FileReader("filename")
    with pytest.raises(InvalidStateException):
        fileReader.checkStatesAreValid([0, 2])
Ejemplo n.º 2
0
def test_checkStatesAreValid_doesNotRaiseExceptionForValidStates():
    fileReader = FileReader("filename")
    fileReader.checkStatesAreValid([0, 1])

    assert True
Ejemplo n.º 3
0
def test_checkStatesAreValid_RaisesExceptionForLetters():
    fileReader = FileReader("filename")
    with pytest.raises(TypeError):
        fileReader.checkStatesAreValid([0, "a"])