'Test the clean method removes expected images.'

@skip_if_disabled
def test_clean_stalled(self):

    incomplete_file_path = os.path.join(self.cache_dir, 'incomplete', '1')
    incomplete_file = open(incomplete_file_path, 'wb')
    incomplete_file.write(FIXTURE_DATA)
    incomplete_file.close()
    self.assertTrue(os.path.exists(incomplete_file_path))
    self.cache.clean(stall_time=0)
    self.assertFalse(os.path.exists(incomplete_file_path))
