def test_validate_resources(self):
        data = samples.valid_repo()
        config = PluginCallConfiguration(data, {})
        result, msg = configuration._validate_resources(config)

        self.assertTrue(result)
        self.assertTrue(msg is None)
    def test_validate_resources_invalid(self):
        data = samples.valid_repo()
        del data['arch']

        config = PluginCallConfiguration(data, {})
        result, msg = configuration._validate_resources(config)

        self.assertTrue(not result)
        self.assertTrue(msg is not None)
        self.assertTrue('Resources error' in msg)