def test_bad_work_dir(): srv = AmbianicServer(work_dir='/_/_/_dir_does_not_exist___') with pytest.raises(AssertionError): srv.start()
def test_no_work_dir(): with pytest.raises(AssertionError): srv = AmbianicServer(work_dir=None)