Example #1
0
 def test_max_tokens_2(self):
     query = TokenQuery("item1{0,3} item2{1,3} item3{2,3}", self.session)
     self.assertEqual(query.get_max_tokens(), 9)
Example #2
0
 def test_max_tokens_2(self):
     query = TokenQuery("item1{0,3} item2{1,3} item3{2,3}", self.session)
     self.assertEqual(query.get_max_tokens(), 9)
Example #3
0
 def test_max_tokens_1(self):
     query = TokenQuery("item1 item2 item3", self.session)
     self.assertEqual(query.get_max_tokens(), 3)
Example #4
0
 def test_max_tokens_1(self):
     query = TokenQuery("item1 item2 item3", self.session)
     self.assertEqual(query.get_max_tokens(), 3)