def test_delete(): c = DummyConnectionControl() name = 'MyHome' c.delete(name) assert c.delete_args[0] == (name, None) c.delete(name, wait=10) assert c.delete_args[1] == (name, 10)
def test_delete_when_raise_error(): c = DummyConnectionControl(raise_error=Exception) with pytest.raises(Exception): c.delete('ethernet')
def test_delete(): c = DummyConnectionControl() name = 'MyHome' c.delete(name) assert c.delete_args[0] == name