Example #1
0
 def test_do_not_match_first_name(self):
     self.assertTrue(not _check_author_match(page_paper, 'larry'))
Example #2
0
 def test_do_not_match_case(self):
     self.assertFalse(_check_author_match(doe_paper, 'dOe'))
     self.assertFalse(
         _check_author_match(doe_paper, 'doe', case_sensitive=True))
Example #3
0
 def test_match_not_first_author(self):
     self.assertTrue(_check_author_match(page_paper, 'motwani'))
Example #4
0
 def test_fails_if_no_author(self):
     no_doe = doe_paper.deepcopy()
     no_doe.bibentry['author'] = []
     self.assertTrue(not _check_author_match(no_doe, 'whatever'))
Example #5
0
 def test_do_not_match_first_name(self):
     self.assertTrue(not _check_author_match(page_paper, 'larry'))
Example #6
0
 def test_match_not_first_author(self):
     self.assertTrue(_check_author_match(page_paper, 'motwani'))
Example #7
0
 def test_do_not_match_case(self):
     self.assertFalse(_check_author_match(doe_paper, 'dOe'))
     self.assertFalse(_check_author_match(doe_paper, 'doe',
                                          case_sensitive=True))
Example #8
0
 def test_fails_if_no_author(self):
     no_doe = doe_paper.deepcopy()
     no_doe.bibentry['author'] = []
     self.assertTrue(not _check_author_match(no_doe, 'whatever'))