def test_no_sources(self): p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'source': None }]) assert([] == list(p.sources()))
def test_sources(self): p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'source': 'baz'}]) assert(['baz'] == list(p.sources()))