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

def test_file_get_accessed_time(self):

    self.assertFalse(self.storage.exists('test.file'))
    f = ContentFile('custom    contents')
    f_name = self.storage.save('test.file', f)
    self.addCleanup(self.storage.delete, f_name)
    atime = self.storage.get_accessed_time(f_name)
    self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
    self.assertLess((timezone.now() - self.storage.get_accessed_time(f_name)), timedelta(seconds=2))
