def source_path(self): path = make_path(self.root_path, 'source', filename_escape(self.name)) mkdir_p(path) return os.path.realpath(path)
def test_length(self): path = make_path(os.path.expanduser('~'), 'build') self.assertTrue(os.path.isabs(path)) self.assertEqual(len(path), LENGTH) self.assertIn('/build/', path) self.assertEqual(path, make_path(os.path.expanduser('~'), 'build'))