def test_expand_wiki_name(self): self.assertEqual("simple.txt", expand_wiki_name("simple.txt")) self.assertEqual("nonMatching", expand_wiki_name("nonMatching")) self.assertEqual("README", expand_wiki_name("README")) self.assertEqual("Home", expand_wiki_name("Home")) self.assertEqual("Front Page", expand_wiki_name("FrontPage")) self.assertEqual("FrontPage.txt", expand_wiki_name("FrontPage.txt")) self.assertEqual("A Simple Page", expand_wiki_name("ASimplePage")) self.assertEqual("FTP Example", expand_wiki_name("FTPExample")) self.assertEqual("A Simple FTP Example", expand_wiki_name("ASimpleFTPExample"))
def title(self): return 'Editing "%s"' % expand_wiki_name(self.context.base_name)