def test_create_raise_exception_if_id_not_from_same_instance(self): command = Command('instance') ConfigBuilder.add_command('instance', command) self.validate_snapshot = False with pytest.raises(Exception) as excinfo: self.create_instance()
def __init__(self, id: str): Command.__init__(self, id)