def _resolve_package(self, directory): try: return self._cache_package[directory] except KeyError: package = utils.python_package(directory) self._cache_package[directory] = package return package
def test_python_package(self): self.assert_(utils.python_package(join(FILES_DIR, 'python'))) self.assert_(not utils.python_package(FILES_DIR))