Beispiel #1
0
def test_show_all_when_raise_error():
    c = DummyDeviceControl(raise_error=Exception)
    with pytest.raises(Exception):
        c.show_all()
Beispiel #2
0
def test_show_all():
    result_show_all = [{'key': 'value'}]
    c = DummyDeviceControl(result_show_all=result_show_all)
    assert c.show_all() == result_show_all