def testDoesNotTolerateLeadingWhitespaceForSectionEnd(self):
		"""filterByDocumentation does not accept whitespace immediately in front of the final documentation-section marker"""
		self.tiddlers[1].text = dedent("""
			/***
			foo bar baz
			***/
		""").replace("***/\n", " \t ***/\n")
		query = "bar"
		expected = []
		self.assertEqual(expected, filterByDocumentation(query, self.tiddlers))
	def testToleratesTrailingWhitespaceForSectionEnd(self):
		"""filterByDocumentation is tolerant of whitespace after the final documentation-section marker"""
		self.tiddlers[1].text = dedent("""
			/***
			foo bar baz
			***/
		""").replace("***/\n", "***/ \t \n")
		query = "bar"
		expected = [self.tiddlers[1]]
		self.assertEqual(expected, filterByDocumentation(query, self.tiddlers))
	def testSearchesWithinDocumentationSection(self):
		"""filterByDocumentation searches within documentation section"""
		self.tiddlers[1].text = dedent("""
			/***
			foo bar baz
			***/
		""")
		query = "bar"
		expected = [self.tiddlers[1]]
		self.assertEqual(expected, filterByDocumentation(query, self.tiddlers))
	def testSearchesDocumentationSectionOnly(self):
		"""filterByDocumentation does not search outside documentation section"""
		self.tiddlers[1].text = dedent("""
			/***
			lorem ipsum dolor sit amet
			***/
			foo bar baz
		""")
		query = "bar"
		expected = []
		self.assertEqual(expected, filterByDocumentation(query, self.tiddlers))