def test_matches_single_letters_with_words(self):
     self.assertFalse(
         create_query('z zom')(
             ('x', 'z with acute', '')
         )
     )
     self.assertTrue(
         create_query('z acute')(
             ('x', 'z with acute', '')
         )
     )
 def test_matches_single_letters_only_with_letters(self):
     self.assertFalse(
         create_query('z')(
             ('x', 'zzzzzzz', '')
         )
     )
     self.assertTrue(
         create_query('z')(
             ('x', 'letter z', '')
         )
     )
Exemple #3
0
 def test_description_match(self):
     self.assertTrue(create_query('aa')(('x', 'aa')))
Exemple #4
0
 def test_symbol_match(self):
     self.assertTrue(create_query('a')(('a', 'x')))
Exemple #5
0
 def test_matches_single_letters_with_words(self):
     self.assertFalse(create_query('z zom')(('x', 'z with acute')))
     self.assertTrue(create_query('z acute')(('x', 'z with acute')))
Exemple #6
0
 def test_matches_single_letters_only_with_letters(self):
     self.assertFalse(create_query('z')(('x', 'zzzzzzz')))
     self.assertTrue(create_query('z')(('x', 'letter z')))
Exemple #7
0
 def test_doesnt_match(self):
     self.assertFalse(create_query('z')(('x', 'a c')))
Exemple #8
0
 def test_description_match_one_words(self):
     self.assertFalse(create_query('a b')(('x', 'a c')))
Exemple #9
0
 def test_description_match_both_words(self):
     self.assertTrue(create_query('aa ba')(('x', 'aa ba')))
 def test_symbol_match(self):
     self.assertTrue(
         create_query('a')(
             ('a', 'x', '')
         )
     )
 def test_doesnt_match(self):
     self.assertFalse(
         create_query('z')(
             ('x', 'a c', '')
         )
     )
 def test_description_match_one_words(self):
     self.assertFalse(
         create_query('a b')(
             ('x', 'a c', '')
         )
     )
 def test_description_match_both_words(self):
     self.assertTrue(
         create_query('aa ba')(
             ('x', 'aa ba', '')
         )
     )
 def test_description_match(self):
     self.assertTrue(
         create_query('aa')(
             ('x', 'aa', '')
         )
     )