コード例 #1
0
 def test_surname_first(self):
     (Surname, First) = bibtex.extract_author(self.surname_first_1)
     self.assertEqual((Surname, First), ("Pearson", "Justin Kenneth"))
     (Surname, First) = bibtex.extract_author(self.surname_first_2)
     self.assertEqual((Surname, First), ("Van Hentenryck", "Pascal"))
コード例 #2
0
 def test_author_2(self):
     #Test simple firstname author.
     (Surname, First) = bibtex.extract_author(self.author_1)
     self.assertEqual((Surname, First), ("Smith", "John"))
     (Surname, First) = bibtex.extract_author(self.author_2)
     self.assertEqual((Surname, First), ("Jones", "Bob"))
コード例 #3
0
 def test_author_3(self):
     (Surname, First) = bibtex.extract_author(self.author_3)
     self.assertEqual((Surname, First), ("Pearson", "Justin Kenneth"))
コード例 #4
0
ファイル: test.py プロジェクト: sbhhbs/LAB2
	def test_surname_first(self):
		(Surname,FirstNames) = bibtex.extract_author(self.surname_first_1)
		self.assertEqual((Surname,FirstNames),("Pearson","Justin Kenneth"))
		(Surname,FirstNames) = bibtex.extract_author(self.surname_first_2)
		self.assertEqual((Surname,FirstNames),("Van Hentenryck","Pascal"))
コード例 #5
0
 def test_author_1(self):
     #Test only surnames.
     (Surname, FirstNames) = bibtex.extract_author(self.simple_author_1)
     self.assertEqual((Surname, FirstNames), ('Smith', ''))
     (Surname, FirstNames) = bibtex.extract_author(self.simple_author_2)
     self.assertEqual((Surname, FirstNames), ('Jones', ''))
コード例 #6
0
ファイル: test.py プロジェクト: sbhhbs/LAB2
	def test_author_3(self):
		(Surname,FirstNames) = bibtex.extract_author(self.author_3)
		self.assertEqual((Surname,FirstNames),("Pearson","Justin Kenneth"))
コード例 #7
0
ファイル: test.py プロジェクト: sbhhbs/LAB2
	def test_author_2(self):
		(Surname,FirstNames) = bibtex.extract_author(self.author_1)
		self.assertEqual((Surname,FirstNames),("Smith","John"))
		(Surname,FirstNames) = bibtex.extract_author(self.author_2)
		self.assertEqual( (Surname,FirstNames) , ("Jones","Bob") )
コード例 #8
0
ファイル: test.py プロジェクト: sbhhbs/LAB2
	def test_author_1(self):
		(Surname,FirstNames) = bibtex.extract_author(self.simple_author_1)
		self.assertEqual((Surname,FirstNames),("Smith",""))
		(Surname,FirstNames) = bibtex.extract_author(self.simple_author_2)
		self.assertEqual( (Surname,FirstNames) , ("Jones","") )
コード例 #9
0
 def test_surname_first(self):
     (Surname, First) = bibtex.extract_author(self.surname_first_1)
     self.assertEqual((Surname, First), ('Pearson', 'Justin Kenneth'))
     (Surname, First) = bibtex.extract_author(self.surname_first_2)
     self.assertEqual((Surname, First), ('Van Hentenryck', 'Pascal'))
コード例 #10
0
 def test_author_2(self):
     #Test simple firstname author.
     (Surname, First) = bibtex.extract_author(self.author_1)
     self.assertEqual((Surname, First), ('Smith', 'John'))
     (Surname, First) = bibtex.extract_author(self.author_2)
     self.assertEqual((Surname, First), ('Jones', 'Bob'))