def test_remove_repo(self): success = cleanup.remove_repo(repo_dir='tests/fake-repo', generated_project='fake-project') self.assertTrue(success) self.assertTrue(os.path.isdir('tests/fake-project')) self.assertTrue(os.path.isfile('tests/fake-project/README.rst')) self.assertFalse(os.path.exists('tests/fake-repo'))
def test_remove_repo_unicode(self): if os.path.supports_unicode_filenames: success = cleanup.remove_repo(repo_dir='tests/fake-repööö', generated_project='fake-pröööject') self.assertTrue(success) self.assertTrue(os.path.isdir('tests/fake-pröööject')) self.assertTrue(os.path.isfile('tests/fake-pröööject/README.rst')) self.assertFalse(os.path.exists('tests/fake-repööö'))
def test_remove_repo(self): success = cleanup.remove_repo( repo_dir='tests/fake-repo', generated_project='fake-project' ) self.assertTrue(success) self.assertTrue(os.path.isdir('tests/fake-project')) self.assertTrue(os.path.isfile('tests/fake-project/README.rst')) self.assertFalse(os.path.exists('tests/fake-repo'))
def test_remove_repo_unicode(self): if os.path.supports_unicode_filenames: success = cleanup.remove_repo( repo_dir='tests/fake-repööö', generated_project='fake-pröööject' ) self.assertTrue(success) self.assertTrue(os.path.isdir('tests/fake-pröööject')) self.assertTrue(os.path.isfile('tests/fake-pröööject/README.rst')) self.assertFalse(os.path.exists('tests/fake-repööö'))