<s> import simplejson <EOL> import unittest <EOL> import utils <EOL> class SplitStringToAlphaNumTest ( unittest . TestCase ) : <EOL> def testInitial ( self ) : <EOL> self . assertEqual ( utils . splitStringWithNumbers ( '<STR_LIT>' ) , <EOL> [ <NUM_LIT:12> , '<STR_LIT>' ] ) <EOL> def testMiddle ( self ) : <EOL> self . assertEqual ( utils . splitStringWithNumbers ( '<STR_LIT>' ) , <EOL> [ '<STR_LIT>' , <NUM_LIT> , '<STR_LIT>' ] ) <EOL> def testFinal ( self ) : <EOL> self . assertEqual ( utils . splitStringWithNumbers ( '<STR_LIT>' ) , <EOL> [ '<STR_LIT>' , <NUM_LIT> ] ) <EOL> def testMultiple ( self ) : <EOL> self . assertEqual ( utils . splitStringWithNumbers ( '<STR_LIT>' ) , <EOL> [ '<STR_LIT>' , <NUM_LIT> , '<STR_LIT>' , <NUM_LIT> , '<STR_LIT>' ] ) <EOL> class SortKeysNumericallyTest ( unittest . TestCase ) : <EOL> def testSimple ( self ) : <EOL> input = { <EOL> '<STR_LIT>' : <NUM_LIT:1> , <EOL> '<STR_LIT>' : <NUM_LIT:12> , <EOL> '<STR_LIT>' : <NUM_LIT:2> , <EOL> } <EOL> output = """<STR_LIT>""" <EOL> self . assertEqual ( <EOL> simplejson . dumps ( input , indent = <NUM_LIT:4> * '<STR_LIT:U+0020>' , <EOL> item_sort_key = utils . sortKeysNumerically ) , <EOL> output ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
