def test_install_src_dir(self): """ should return the path where a pip install checks out its git repos """ self.assertEqual(spec_helpers.install_src_dir(), os.path.join(self.test_env, 'src'))
def test_install_src_dir_with_path_components(self): """ should return the path where a pip install checks out its git repos joined with any relative path components """ a = 'foo/bar' b = 'biz/baz' self.assertEqual(spec_helpers.install_src_dir(a, b), os.path.join(self.test_env, 'src', a, b))