def testToAndFromString(self):
     self.sitemap_mobile.markup_language.append(
         webmastertools.MarkupLanguage(text='HTML'))
     self.assert_(self.sitemap_mobile.text is None)
     self.assert_(self.sitemap_mobile.markup_language[0].text == 'HTML')
     new_sitemap_mobile = webmastertools.SitemapMobileFromString(
         self.sitemap_mobile.ToString())
     self.assert_(new_sitemap_mobile.text is None)
     self.assert_(self.sitemap_mobile.markup_language[0].text ==
                  new_sitemap_mobile.markup_language[0].text)
 def setUp(self):
     self.markup_language = webmastertools.MarkupLanguage()