Exemplo n.º 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"))
Exemplo n.º 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"))
Exemplo n.º 3
0
 def test_author_3(self):
     (Surname, First) = bibtex.extract_author(self.author_3)
     self.assertEqual((Surname, First), ("Pearson", "Justin Kenneth"))
Exemplo n.º 4
0
Arquivo: test.py Projeto: 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"))
Exemplo n.º 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', ''))
Exemplo n.º 6
0
Arquivo: test.py Projeto: sbhhbs/LAB2
	def test_author_3(self):
		(Surname,FirstNames) = bibtex.extract_author(self.author_3)
		self.assertEqual((Surname,FirstNames),("Pearson","Justin Kenneth"))
Exemplo n.º 7
0
Arquivo: test.py Projeto: 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") )
Exemplo n.º 8
0
Arquivo: test.py Projeto: 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'))
Exemplo n.º 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'))