Exemplo n.º 1
0
def test_bad_work_dir():
    srv = AmbianicServer(work_dir='/_/_/_dir_does_not_exist___')
    with pytest.raises(AssertionError):
        srv.start()
Exemplo n.º 2
0
def test_no_work_dir():
    with pytest.raises(AssertionError):
        srv = AmbianicServer(work_dir=None)