コード例 #1
0
ファイル: test_queries.py プロジェクト: jjacampion/pubs
 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
ファイル: test_queries.py プロジェクト: jjacampion/pubs
 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
ファイル: test_queries.py プロジェクト: omangin/pubs
 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
ファイル: test_queries.py プロジェクト: omangin/pubs
 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'))