<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from el_pagination . tests . integration import SeleniumTestCase <EOL> class TwitterPaginationTest ( SeleniumTestCase ) : <EOL> view_name = '<STR_LIT>' <EOL> def test_new_elements_loaded ( self ) : <EOL> self . get ( ) <EOL> with self . assertNewElements ( '<STR_LIT:object>' , range ( <NUM_LIT:1> , <NUM_LIT:11> ) ) : <EOL> self . click_link ( self . MORE ) <EOL> def test_url_not_changed ( self ) : <EOL> self . get ( ) <EOL> with self . assertSameURL ( ) : <EOL> self . click_link ( self . MORE ) <EOL> def test_direct_link ( self ) : <EOL> self . get ( page = <NUM_LIT:4> ) <EOL> self . assertElements ( '<STR_LIT:object>' , range ( <NUM_LIT:16> , <NUM_LIT> ) ) <EOL> self . assertIn ( '<STR_LIT>' , self . selenium . current_url ) <EOL> def test_subsequent_page ( self ) : <EOL> self . get ( page = <NUM_LIT:2> ) <EOL> with self . assertNewElements ( '<STR_LIT:object>' , range ( <NUM_LIT:6> , <NUM_LIT:16> ) ) : <EOL> self . click_link ( self . MORE ) <EOL> def test_multiple_show_more ( self ) : <EOL> self . get ( ) <EOL> for page in range ( <NUM_LIT:2> , <NUM_LIT:5> ) : <EOL> expected_range = range ( <NUM_LIT:1> , <NUM_LIT:5> * page + <NUM_LIT:1> ) <EOL> with self . assertSameURL ( ) : <EOL> with self . assertNewElements ( '<STR_LIT:object>' , expected_range ) : <EOL> self . click_link ( self . MORE ) <EOL> def test_no_more_link_in_last_page ( self ) : <EOL> self . get ( page = <NUM_LIT:10> ) <EOL> self . asserLinksEqual ( <NUM_LIT:0> , self . MORE ) </s>
