def test_check_files_in_tarball_files_not_exist(self): source_dir = os.getcwd() files = ["test-thing-that-does-not-exist"] try: instructions.check_files_in_package(source_dir, files) except CondaFileIOError as e: assert isinstance(e, CondaFileIOError) else: self.fail('CondaFileIOError not raised')
def test_check_files_in_tarball_files_exist(self): source_dir = os.getcwd() files = [__file__] self.assertTrue(instructions.check_files_in_package(source_dir, files))