'File storage extracts the filename from the content object if no
name is given explicitly.'

def test_file_save_without_name(self):

    self.assertFalse(self.storage.exists(u'test.file'))
    f = ContentFile(u'custom    contents')
    f.name = u'test.file'
    storage_f_name = self.storage.save(None, f)
    self.assertEqual(storage_f_name, f.name)
    self.assertTrue(os.path.exists(os.path.join(self.temp_dir, f.name)))
    self.storage.delete(storage_f_name)
