<s> """<STR_LIT>""" <EOL> import unittest <EOL> from test import test_support <EOL> class BufferTests ( unittest . TestCase ) : <EOL> def test_extended_getslice ( self ) : <EOL> s = "<STR_LIT>" . join ( chr ( c ) for c in list ( range ( <NUM_LIT:255> , - <NUM_LIT:1> , - <NUM_LIT:1> ) ) ) <EOL> b = buffer ( s ) <EOL> indices = ( <NUM_LIT:0> , None , <NUM_LIT:1> , <NUM_LIT:3> , <NUM_LIT> , <NUM_LIT> , - <NUM_LIT:1> , - <NUM_LIT:2> , - <NUM_LIT> , - <NUM_LIT> ) <EOL> for start in indices : <EOL> for stop in indices : <EOL> for step in indices [ <NUM_LIT:1> : ] : <EOL> self . assertEqual ( b [ start : stop : step ] , <EOL> s [ start : stop : step ] ) <EOL> def test_main ( ) : <EOL> with test_support . check_py3k_warnings ( ( "<STR_LIT>" , <EOL> DeprecationWarning ) ) : <EOL> test_support . run_unittest ( BufferTests ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
