def test_remove_from_bin_file_exists(self):
        _, temp_file_path = tempfile.mkstemp()
        try:
            with open(temp_file_path, 'w+') as temp_file:
                temp_file.write('hobo')
            self.directory.symlink_to_bin('newfile', temp_file_path)
            self.directory.remove_from_bin('newfile')
            assert not os.path.exists(os.path.join(self.directory.bin_path(), 'newfile'))
            os.mkdir(os.path.join(self.directory.bin_path(), 'newfolder'))
            self.directory.remove_from_bin('newfolder')
            assert not os.path.exists(os.path.join(self.directory.bin_path(), 'newfolder'))
        finally:
            os.unlink(temp_file_path)
Reverse a blog page, taking different configuration options into account.
dataset/ETHPy150Open toumorokoshi/sprinter/tests/core/test_directory.py/TestDirectory.test_remove_from_bin_file_exists--crossover with--dataset/ETHPy150Open edoburu/django-fluent-blogs/fluent_blogs/views/feeds.py/EntryFeedBase.reverse