def test_clear_delete_all_action(self):
        name1, name2 = self.make_test_thumbnails('400x300', '200x200')
        management.call_command('thumbnail', 'clear', verbosity=0)
        name3, = self.make_test_thumbnails('100x100')
        out = StringIO('')
        management.call_command('thumbnail', 'clear_delete_all', verbosity=1, stdout=out)
        lines = out.getvalue().split("\n")
        self.assertEqual(lines[0], "Clear the Key Value Store ... [Done]")
        self.assertEqual(lines[1], "Delete all thumbnail files in THUMBNAIL_PREFIX ... [Done]")
        self.assertFalse(os.path.isfile(name1))
        self.assertFalse(os.path.isfile(name2))
        self.assertFalse(os.path.isfile(name3))
Filter the source_bucket's nodes if single_node was specified.
dataset/ETHPy150Open mariocesar/sorl-thumbnail/tests/thumbnail_tests/test_commands.py/CommandTests.test_clear_delete_all_action--crossover with--dataset/ETHPy150Open membase/membase-cli/pump.py/PumpingStation.filter_source_nodes