示例#1
0
 def test_xml_resource_get_locations(self):
     resource = XMLResource(self.col_xml_file)
     self.check_url(resource.url, normalize_url(self.col_xml_file))
     locations = resource.get_locations([('ns', 'other.xsd')])
     self.assertEqual(len(locations), 2)
     self.check_url(locations[0][1], os.path.join(self.col_dir,
                                                  'other.xsd'))
示例#2
0
 def test_xml_resource_get_locations(self):
     resource = XMLResource(self.col_xml_file)
     self.assertEqual(resource.url, normalize_url(self.col_xml_file))
     locations = resource.get_locations([('ns', 'other.xsd')])
     self.assertEqual(len(locations), 2)
     if not IS_WIN_PLATFORM:
         self.assertEqual(
             locations[0][1].lower(),
             FILE_SCHEME.format(self.col_dir).lower() + '/other.xsd')
示例#3
0
 def test_xml_resource_get_locations(self):
     resource = XMLResource(self.col_xml_file)
     self.check_url(resource.url, normalize_url(self.col_xml_file))
     locations = resource.get_locations([('ns', 'other.xsd')])
     self.assertEqual(len(locations), 2)
     self.check_url(locations[0][1], os.path.join(self.col_dir, 'other.xsd'))