'Regression test for #9610.
If the directory name contains a dot and the file name doesn\'t, make
sure we still mangle the file name instead of the directory name.'

def test_directory_with_dot(self):

    self.storage.save('dotted.path/test', ContentFile('1'))
    self.storage.save('dotted.path/test', ContentFile('2'))
    self.assertFalse(os.path.exists(os.path.join(self.storage_dir, 'dotted_.path')))
    self.assertTrue(os.path.exists(os.path.join(self.storage_dir, 'dotted.path/test')))
    self.assertTrue(os.path.exists(os.path.join(self.storage_dir, 'dotted.path/test_1')))
