def test_bad_resource_enable(self): self.runner.set_runs( fixture.call_cib_load( fixture.cib_resources(self.fixture_cib_unmanaged))) assert_raise_library_error( lambda: resource.manage(self.env, ["B", "X", "Y", "A"]), fixture.report_not_found("X", "resources"), fixture.report_not_found("Y", "resources"), ) self.runner.assert_everything_launched()
def test_nonexistent_resource(self): self.runner.set_runs( fixture.call_cib_load( fixture.cib_resources(fixture_primitive_cib_unmanaged))) assert_raise_library_error(lambda: resource.manage(self.env, ["B"]), fixture.report_not_found("B", "resources")) self.runner.assert_everything_launched()