def test_no_drivers(self): p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'driver': None }]) assert([] == list(p.drivers()))
def test_drivers(self): p = Package(pj('path', 'to', 'foo'), ['bar'], [{ 'driver': 'baz'}]) assert(['baz'] == list(p.drivers()))