<s> from jedi import parser <EOL> from jedi . _compatibility import u <EOL> try : <EOL> import unittest2 as unittest <EOL> except ImportError : <EOL> import unittest <EOL> class TokenTest ( unittest . TestCase ) : <EOL> def test_end_pos_one_line ( self ) : <EOL> parsed = parser . Parser ( u ( '''<STR_LIT>''' ) ) <EOL> tok = parsed . module . subscopes [ <NUM_LIT:0> ] . statements [ <NUM_LIT:0> ] . _token_list [ <NUM_LIT:2> ] <EOL> self . assertEqual ( tok . end_pos , ( <NUM_LIT:3> , <NUM_LIT> ) ) <EOL> def test_end_pos_multi_line ( self ) : <EOL> parsed = parser . Parser ( u ( '''<STR_LIT>''' ) ) <EOL> tok = parsed . module . subscopes [ <NUM_LIT:0> ] . statements [ <NUM_LIT:0> ] . _token_list [ <NUM_LIT:2> ] <EOL> self . assertEqual ( tok . end_pos , ( <NUM_LIT:4> , <NUM_LIT:11> ) ) </s>
