def test_stub_2(self): root = fromstring(open(os.path.join(settings.BASE_DIR, 'crisix/database/TestXML/TestSHESSG.xml')).read()) insert(root) a = Crisis.objects.get(id='CRI_SHESSG') res = is_stub(a) self.assertFalse(res)
def test_stub_3(self): root = fromstring(open(os.path.join(settings.BASE_DIR, 'crisix/database/TestXML/TestNLTLCL.xml')).read()) insert(root) a = Organization.objects.get(id='ORG_NLTLCL') res = is_stub(a) self.assertFalse(res)
def test_stub_1(self): root = fromstring(open(os.path.join(settings.BASE_DIR, 'crisix/database/TestXML/TestBROBMA.xml')).read()) insert(root) a = Person.objects.get(id='PER_BROBMA') res = is_stub(a) self.assertFalse(res)