def test_contact_2(self):
	# Test if contact info matches for given organization
	root = fromstring(open(os.path.join(settings.BASE_DIR, 'crisix/database/TestXML/TestUNDWAY.xml')).read())
        insert(root)
	a = Organization.objects.get(id='ORG_UNDWAY')
	res = get_contact(a)
	self.assertEqual(res, 'http://apps.unitedway.org/contact/')
    def test_contact_3(self):
	# Test if contact info matches for given organization
	root = fromstring(open(os.path.join(settings.BASE_DIR, 'crisix/database/TestXML/TestSNQKRF.xml')).read())
        insert(root)
	a = Organization.objects.get(id='ORG_SNQKRF')
	res = get_contact(a)
	self.assertEqual(res, 'http://sichuan-quake-relief.org/contact-us/')
    def test_contact_1(self):
	# Test if contact info is applicable to non-organization
	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 = get_contact(a)
	self.assertEqual(res, '')