#NEWLINE# def test_bad_stats( self ) : #NEWLINE# #INDENT# for arg in [ None , 666 , int , float ] : #NEWLINE# #INDENT# self . record ( arg , foo = 2 ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , self . snapshot ( ) ) #NEWLINE# #UNINDENT# for val in [ 'invalid' , ( 2 ** 100 ) , int , float ] : #NEWLINE# #INDENT# self . record ( foo = 'invalid' ) #NEWLINE# self . set_exact ( foo = 'invalid' ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , self . snapshot ( ) )