def test_populate_crisis0(self):
		xml_string = "<WC><Crisis ID=\"CRI_NOTFOREXPORT\" Name=\"NOTFOREXPORT\"><People><Person ID=\"PER_NOTFOREXPORT\" /></People><Organizations><Org ID=\"ORG_NOTFOREXPORT\" /></Organizations><Kind>NOTFOREXPORT</Kind><Date>2011-01-25</Date><Time>09:00:00+05:30</Time><Locations><li>random</li></Locations><HumanImpact><li>random</li></HumanImpact><EconomicImpact><li>random</li></EconomicImpact><ResourcesNeeded><li>random</li></ResourcesNeeded><WaysToHelp><li> href=\"http://random\"</li><li>random</li></WaysToHelp><Common><Citations><li> href= random</li></Citations><ExternalLinks><li> href=\"http:random.html\"</li></ExternalLinks><Images><li> embed=\"http:random.jpg\"</li></Images><Summary>random</Summary></Common></Crisis></WC>"
		crisis_list = []
		root = ET.fromstring(xml_string)
		populate_crisis(root, crisis_list)

		self.assert_(len(crisis_list) >= 1)
	def test_populate_crisis2(self):
		xml_string1 = "<WC><Crisis ID=\"CRI_last_populate_crisis_to_check\" Name=\"last_populate_crisis_to_check\"><People><Person ID=\"PER_last_populate_crisis_to_check\" /></People><Organizations><Org ID=\"ORG_last_populate_crisis_to_check\" /></Organizations><Kind>last_populate_crisis_to_check</Kind><Date>2011-01-25</Date><Time>09:00:00+05:30</Time><Locations><li>last_populate_crisis_to_check</li></Locations><HumanImpact><li>last_populate_crisis_to_check</li></HumanImpact><EconomicImpact><li>last_populate_crisis_to_check</li></EconomicImpact><ResourcesNeeded><li>last_populate_crisis_to_check</li></ResourcesNeeded><WaysToHelp><li> href=\"http://last_populate_crisis_to_check\"</li><li>last_populate_crisis_to_check</li></WaysToHelp><Common><Citations><li> href= last_populate_crisis_to_check</li></Citations><ExternalLinks><li> href=\"http:last_populate_crisis_to_check.html\"</li></ExternalLinks><Images><li> embed=\"http:last_populate_crisis_to_check.jpg\"</li></Images><Summary>last_populate_crisis_to_check</Summary></Common></Crisis></WC>"
		crisis_list1 = []
		root1 = ET.fromstring(xml_string1)
		populate_crisis(root1, crisis_list1)

		self.assert_(len(crisis_list1) >= 1)
	def test_export_crisis2(self):
		xml_string = "<WC><Crisis ID=\"CRI_important\" Name=\"important\"><People><Person ID=\"PER_important\" /></People><Organizations><Org ID=\"ORG_important\" /></Organizations><Kind>important</Kind><Date>2011-01-25</Date><Time>09:00:00+05:30</Time><Locations><li>important</li></Locations><HumanImpact><li>important</li></HumanImpact><EconomicImpact><li>important</li></EconomicImpact><ResourcesNeeded><li>important</li></ResourcesNeeded><WaysToHelp><li> href=\"http://important\"</li><li>important</li></WaysToHelp><Common><Citations><li> href= important</li></Citations><ExternalLinks><li> href=\"http:important.html\"</li></ExternalLinks><Images><li> embed=\"http:important.jpg\"</li></Images><Summary>important</Summary></Common></Crisis></WC>"
		crisis_list1 = []
		root1 = ET.fromstring(xml_string)
		populate_crisis(root1, crisis_list1)
		
		crisis_xml = export_crisis(crisis_list1[0])
		check_string = xml_string [4:-5]
		self.assertEqual(check_string, crisis_xml)