示例#1
0
 def test_do_not_match_first_name(self):
     self.assertTrue(not _check_author_match(page_paper, 'larry'))
示例#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))
示例#3
0
 def test_match_not_first_author(self):
     self.assertTrue(_check_author_match(page_paper, 'motwani'))
示例#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'))
示例#5
0
 def test_do_not_match_first_name(self):
     self.assertTrue(not _check_author_match(page_paper, 'larry'))
示例#6
0
 def test_match_not_first_author(self):
     self.assertTrue(_check_author_match(page_paper, 'motwani'))
示例#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))
示例#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'))