'Test the File storage API with a file like object coming from urllib2.urlopen()'

def test_urllib2_urlopen(self):

    file_like_object = urlopen((self.live_server_url + u'/'))
    f = File(file_like_object)
    stored_filename = self.storage.save(u'remote_file.html', f)
    remote_file = urlopen((self.live_server_url + u'/'))
    with self.storage.open(stored_filename) as stored_file:
        self.assertEqual(stored_file.read(), remote_file.read())
