def test_komplettansicht_is_chopped_off(self):
     live_url_to_content(
         'http://www.zeit.de/online/2007/01/Somalia/komplettansicht')
     self.cmscontent.assert_called_with(
         'http://xml.zeit.de/online/2007/01/Somalia', None)
 def test_page_marker_is_chopped_off(self):
     live_url_to_content(
         'http://www.zeit.de/online/2007/01/Somalia/seite-5')
     self.cmscontent.assert_called_with(
         'http://xml.zeit.de/online/2007/01/Somalia', None)
 def test_www_host_is_replaced_by_xml_host(self):
     live_url_to_content('http://www.foo.bar/test')
     self.cmscontent.assert_called_with('http://xml.foo.bar/test', None)
 def test_www_in_path_is_left_alone(self):
     live_url_to_content('http://www.foo.bar/www/test')
     self.cmscontent.assert_called_with('http://xml.foo.bar/www/test', None)
 def test_www_zeit_de_does_not_raise_if_content_not_exists(self):
     live_url_to_content('http://www.zeit.de/foo/bar/foobaz')