#NEWLINE# def test_typeCasts( self ) : #NEWLINE# #INDENT# for ( k , v ) in TEST_CASES . iteritems ( ) : #NEWLINE# #INDENT# for ( inpt , expected ) in v : #NEWLINE# #INDENT# got = getattr ( typecasts , k ) ( inpt ) #NEWLINE# self . assertEqual ( got , expected , ( "In %s: %r doesn't match %r. Got %r instead." % ( k , inpt , expected , got ) ) )