示例#1
0
 def test_no_sources(self):
     p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'source': None }])
     assert([] == list(p.sources()))
示例#2
0
 def test_sources(self):
     p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'source': 'baz'}])
     assert(['baz'] == list(p.sources()))
示例#3
0
 def test_sources(self):
     p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'source': 'baz'}])
     assert(['baz'] == list(p.sources()))
示例#4
0
 def test_no_sources(self):
     p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'source': None }])
     assert([] == list(p.sources()))