Beispiel #1
0
 def test_org_type_missing(self):
     orgtype = parse.reporting_org(
         ET.XML(u"""<wrap><reporting-org ref="GB-CHC-202918" /></wrap>"""))
     self.assertEquals(None, orgtype.type)
Beispiel #2
0
 def test_org_type_missing(self):
     orgtype = parse.reporting_org(ET.XML(
         u"""<wrap><reporting-org ref="GB-CHC-202918" /></wrap>"""
     ))
     self.assertEquals(None, orgtype.type)
Beispiel #3
0
 def test_org_type(self):
     orgtype = parse.reporting_org(
         ET.XML(
             u"""<wrap><reporting-org ref="GB-CHC-202918" type="21" /></wrap>"""
         ))
     self.assertEquals(cl.OrganisationType.international_ngo, orgtype.type)
Beispiel #4
0
 def test_org_type(self):
     orgtype = parse.reporting_org(ET.XML(
         u"""<wrap><reporting-org ref="GB-CHC-202918" type="21" /></wrap>"""
     ))
     self.assertEquals(cl.OrganisationType.international_ngo, orgtype.type)