예제 #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","") )
 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'))