Ejemplo n.º 1
0
 def test_rectangle_2(self):
     root = ET.Element("rectangle")
     ET.SubElement(root, "south").text = '20'
     ET.SubElement(root, "north").text = '50'
     ET.SubElement(root, 'west').text = '50'
     ET.SubElement(root, 'east').text = '0'
     self.assertFalse(check_rectangle([root]))
Ejemplo n.º 2
0
 def test_rectangle_5(self):
     root = ET.Element("rectangle")
     ET.SubElement(root, '{http://www.met.no/schema/mmd}south').text = '20'
     ET.SubElement(root, '{http://www.met.no/schema/mmd}north').text = '50'
     ET.SubElement(root, '{http://www.met.no/schema/mmd}west').text = '50'
     ET.SubElement(root, '{http://www.met.no/schema/mmd}east').text = '0'
     self.assertFalse(check_rectangle([root]))
Ejemplo n.º 3
0
 def test_rectangle_1(self):
     rect = self.etree_ref.findall('./{*}geographic_extent/{*}rectangle')
     self.assertTrue(check_rectangle(rectangle=rect))
Ejemplo n.º 4
0
 def test_rectangle_4(self):
     self.assertFalse(check_rectangle(['elem1', 'elem2']))