Esempio n. 1
0
	def testReturnsTiddlers(self):
		"""get_tiddlers returns Tiddler instances"""
		doc = _getTiddlyWiki("modern")
		tiddlers = main.get_tiddlers(doc)
		actual = tiddlers[0].title
		expected = "Foo"
		self.assertEqual(actual, expected)
Esempio n. 2
0
	def testReturnsList(self):
		"""get_tiddlers returns empty list if no tiddlers in store"""
		doc = _getTiddlyWiki()
		actual = main.get_tiddlers(doc)
		expected = []
		self.assertEqual(actual, expected)