def test_get_token_numbering_2(self): query = TokenQuery("item1{0,3} item2{1,3} item3{2,3}", self.session) self.assertEqual(query.get_token_numbering(0), "1.1") self.assertEqual(query.get_token_numbering(1), "1.2") self.assertEqual(query.get_token_numbering(2), "1.3") self.assertEqual(query.get_token_numbering(3), "2.1") self.assertEqual(query.get_token_numbering(4), "2.2") self.assertEqual(query.get_token_numbering(5), "2.3") self.assertEqual(query.get_token_numbering(6), "3.1") self.assertEqual(query.get_token_numbering(7), "3.2") self.assertEqual(query.get_token_numbering(8), "3.3")
def test_get_token_numbering_2(self): query = TokenQuery("item1{0,3} item2{1,3} item3{2,3}", self.session) self.assertEqual(query.get_token_numbering(0), "1.1") self.assertEqual(query.get_token_numbering(1), "1.2") self.assertEqual(query.get_token_numbering(2), "1.3") self.assertEqual(query.get_token_numbering(3), "2.1") self.assertEqual(query.get_token_numbering(4), "2.2") self.assertEqual(query.get_token_numbering(5), "2.3") self.assertEqual(query.get_token_numbering(6), "3.1") self.assertEqual(query.get_token_numbering(7), "3.2") self.assertEqual(query.get_token_numbering(8), "3.3")
def test_get_token_numbering_1(self): query = TokenQuery("item1 item2 item3", self.session) self.assertEqual(query.get_token_numbering(0), "1") self.assertEqual(query.get_token_numbering(1), "2") self.assertEqual(query.get_token_numbering(2), "3")
def test_get_token_numbering_1(self): query = TokenQuery("item1 item2 item3", self.session) self.assertEqual(query.get_token_numbering(0), "1") self.assertEqual(query.get_token_numbering(1), "2") self.assertEqual(query.get_token_numbering(2), "3")