def testSupportsTableNotation(self): """supports table notation""" text = ("|Foo|lorem|\n|Bar|ipsum|") expected = { "Foo": "lorem", "Bar": "ipsum" } self.assertEqual(expected, tiddlywiki.getSlices(text))
def testSupportsMixedNotation(self): """supports mixed notation""" text = ("Foo: lorem\n|Bar|ipsum|") expected = { "Foo": "lorem", "Bar": "ipsum" } self.assertEqual(expected, tiddlywiki.getSlices(text))
def testSupportsColonNotation(self): """supports colon notation""" text = "Foo: lorem\nBar: ipsum" expected = { "Foo": "lorem", "Bar": "ipsum" } self.assertEqual(expected, tiddlywiki.getSlices(text))
def testCapitalizesSliceNames(self): # XXX: deprecated """capitalizes slice names""" text = ("foo: lorem\n" + "|bar|ipsum|") expected = { "Foo": "lorem", "Bar": "ipsum" } self.assertEqual(expected, tiddlywiki.getSlices(text))