예제 #1
0
 def test_match_case(self):
     self.assertTrue(_check_field_match(doe_paper, 'title', 'nice'))
     self.assertTrue(
         _check_field_match(doe_paper,
                            'title',
                            'nice',
                            case_sensitive=False))
     self.assertTrue(_check_field_match(doe_paper, 'year', '2013'))
예제 #2
0
 def test_do_not_match_case(self):
     self.assertTrue(
         _check_field_match(doe_paper,
                            'title',
                            'Title',
                            case_sensitive=True))
     self.assertFalse(
         _check_field_match(doe_paper, 'title', 'nice',
                            case_sensitive=True))
예제 #3
0
 def test_do_not_match_case(self):
     self.assertTrue(_check_field_match(doe_paper, 'title',
                                         'Title', case_sensitive=True))
     self.assertFalse(_check_field_match(doe_paper, 'title', 'nice',
                                          case_sensitive=True))
예제 #4
0
 def test_match_case(self):
     self.assertTrue(_check_field_match(doe_paper, 'title', 'nice'))
     self.assertTrue(_check_field_match(doe_paper, 'title', 'nice',
                                        case_sensitive=False))
     self.assertTrue(_check_field_match(doe_paper, 'year', '2013'))