#NEWLINE# def test_converting_to_pp_record_removes_whitespace_from_id( self ) : #NEWLINE# #INDENT# hourly_stats = { #NEWLINE# #INDENT# 'avgresponse' : 721 , #NEWLINE# 'downtime' : 523 , #NEWLINE# 'starttime' : datetime ( 2013 , 6 , 15 , 22 , 0 , tzinfo = pytz . UTC ) , #NEWLINE# 'unmonitored' : 12 , #NEWLINE# 'uptime' : 3599 , #NEWLINE# #UNINDENT# } #NEWLINE# name_of_check = 'name with whitespace' #NEWLINE# doc = convert_from_pingdom_to_performanceplatform ( hourly_stats , doc ) #NEWLINE# assert_that ( doc , has_entry ( '_id' , 'name_with_whitespace.2013-06-15T22:00:00+00:00' ) )