'File storage returns a Datetime object for the last modified time of
a file.'

def test_file_modified_time(self):

    self.assertFalse(self.storage.exists(u'test.file'))
    f = ContentFile(u'custom    contents')
    f_name = self.storage.save(u'test.file', f)
    mtime = self.storage.modified_time(f_name)
    self.assertEqual(mtime, datetime.fromtimestamp(os.path.getmtime(self.storage.path(f_name))))
    self.assertTrue(((datetime.now() - self.storage.modified_time(f_name)) < timedelta(seconds=2)))
    self.storage.delete(f_name)
