Пример #1
0
 def test_open_url_file_with_protocol(self):
     fd = open_url('file://%s' % settings.EXAMPLE_RSS_FEED)
     self.assertEquals('<?xml', fd.read(5))
Пример #2
0
 def test_open_url_file_absolute_path(self):
     fd = open_url(settings.EXAMPLE_RSS_FEED)
     self.assertEquals('<?xml', fd.read(5))