def __str__(self): return normalize_path(self.path, self.nest.work_dir)
def test_01_weaver_nest(self): self.assertEqual(normalize_path("weaver/nest.py", self.DIR_NAME), "../nest.py")
def test_02_weaver_test_util(self): self.assertEqual(normalize_path("weaver/test/util.py", self.DIR_NAME), "util.py")
def _generate(self): return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest) for f in glob.glob(self.expr))
def test_00_readme(self): self.assertEqual(normalize_path("README.rst", self.DIR_NAME), "../../README.rst")
def test_02_weaver_test_util(self): self.assertEqual( normalize_path('weaver/test/util.py', self.DIR_NAME), 'util.py')
def __iter__(self): # Skip checking and generating cache file, since we are given file debug(D_DATASET, 'Loading Dataset: {0}'.format(self.cache_path)) return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest) for f in open(self.cache_path, 'r'))
def test_00_readme(self): self.assertEqual( normalize_path('README.rst', self.DIR_NAME), '../../README.rst')
def test_01_weaver_nest(self): self.assertEqual( normalize_path('weaver/nest.py', self.DIR_NAME), '../nest.py')
def test_02_weaver_test_util(self): self.assertEqual(normalize_path('weaver/test/util.py', self.DIR_NAME), 'util.py')
def test_01_weaver_nest(self): self.assertEqual(normalize_path('weaver/nest.py', self.DIR_NAME), '../nest.py')
def test_00_readme(self): self.assertEqual(normalize_path('README.rst', self.DIR_NAME), '../../README.rst')