コード例 #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)
コード例 #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)