Esempio n. 1
0
 def test_remotefile_404(self):
     remote_file = RemoteFile(http_base + 'DOESNOTEXIST.rdf')
     # FIXME with self.assertRaises(SomeException):
     file_uri = remote_file.get_downloaded_file_uri()
     self.assertFalse(exists(file_uri[7:]), 'nonexistent file should not exist')
Esempio n. 2
0
 def test_remotefile(self):
     remote_file = RemoteFile(http_base + 'heb.rdf')
     file_uri = remote_file.get_downloaded_file_uri()
     self.assertTrue(exists(file_uri[7:]))
     self.assertTrue(filecmp.cmp(file_uri[7:],
                     helpers.resources_path + 'heb.rdf'))