def test_no_headers(self): p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'header': None }]) assert([] == list(p.headers()))
def test_headers(self): p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'header': 'baz'}]) assert(['baz'] == list(p.headers()))