コード例 #1
0
 def test_one_tag_not_predefined(self):
     tags = {tag_p}
     expected = [tag_p]
     result = tag.canonical_order(tags)
     self.assertEqual(expected, result)
コード例 #2
0
 def test_many_tags_mixed(self):
     tags = {tag_m, tag_i, tag_s, tag_p}
     expected = [tag_m, tag_i, tag_p, tag_s]
     result = tag.canonical_order(tags)
     self.assertEqual(expected, result)
コード例 #3
0
 def test_no_tags(self):
     tags = {}
     expected = []
     result = tag.canonical_order(tags)
     self.assertEqual(expected, result)
コード例 #4
0
 def test_many_tags_not_predefined(self):
     tags = {tag_p, tag_s}
     expected = [tag_p, tag_s]
     result = tag.canonical_order(tags)
     self.assertEqual(expected, result)
コード例 #5
0
ファイル: tests.py プロジェクト: ilius/pyglossary
	def test_one_tag_not_predefined(self):
		tags = {tag_p}
		expected = [tag_p]
		result = tag.canonical_order(tags)
		self.assertEqual(expected, result)
コード例 #6
0
ファイル: tests.py プロジェクト: ilius/pyglossary
	def test_no_tags(self):
		tags = {}
		expected = []
		result = tag.canonical_order(tags)
		self.assertEqual(expected, result)
コード例 #7
0
ファイル: tests.py プロジェクト: ilius/pyglossary
	def test_many_tags_mixed(self):
		tags = {tag_m, tag_i, tag_s, tag_p}
		expected = [tag_m, tag_i, tag_p, tag_s]
		result = tag.canonical_order(tags)
		self.assertEqual(expected, result)
コード例 #8
0
ファイル: tests.py プロジェクト: ilius/pyglossary
	def test_many_tags_not_predefined(self):
		tags = {tag_p, tag_s}
		expected = [tag_p, tag_s]
		result = tag.canonical_order(tags)
		self.assertEqual(expected, result)