Ejemplo n.º 1
0
 def test_build_non_empty(self):
     """Check that RepoSync provider is correctly built
     """
     config = Config()
     config.sources = [{"name": "sources.fedora",
                        "type": "repofile",
                        "repofile": "something.repo"}]
     sources = SourceBuilder.build()
     assert len(sources) == 1
Ejemplo n.º 2
0
 def test_build_empty(self):
     """Check that unrecognized source providers are
     correctly processed
     """
     config = Config()
     config.sources = [{"name": "sources.something",
                        "type": "foobar"}]
     sources = SourceBuilder.build()
     assert len(sources) == 0