'Saving a pathname should create intermediate directories as necessary.'

def test_file_save_with_path(self):

    self.assertFalse(self.storage.exists(u'path/to'))
    self.storage.save(u'path/to/test.file', ContentFile(u'file    saved    with    path'))
    self.assertTrue(self.storage.exists(u'path/to'))
    with self.storage.open(u'path/to/test.file') as f:
        self.assertEqual(f.read(), 'file    saved    with    path')
    self.assertTrue(os.path.exists(os.path.join(self.temp_dir, u'path', u'to', u'test.file')))
    self.storage.delete(u'path/to/test.file')
