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"))
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"))
def test_author_3(self): (Surname, First) = bibtex.extract_author(self.author_3) self.assertEqual((Surname, First), ("Pearson", "Justin Kenneth"))
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"))
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', ''))
def test_author_3(self): (Surname,FirstNames) = bibtex.extract_author(self.author_3) self.assertEqual((Surname,FirstNames),("Pearson","Justin Kenneth"))
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") )
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'))
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'))