<s> import unittest <EOL> import twisted . trial . unittest <EOL> import obfsproxy . transports . b64 as b64 <EOL> class test_b64_splitting ( twisted . trial . unittest . TestCase ) : <EOL> def _helper_splitter ( self , string , expected_chunks ) : <EOL> chunks = b64 . _get_b64_chunks_from_str ( string ) <EOL> self . assertEqual ( chunks , expected_chunks ) <EOL> def test_1 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_2 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_3 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_4 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_5 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_6 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_7 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_8 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_9 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> def test_10 ( self ) : <EOL> string = "<STR_LIT>" <EOL> expected = [ "<STR_LIT>" ] <EOL> self . _helper_splitter ( string , expected ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
