#NEWLINE# def test_summary_detail( self ) : #NEWLINE# #INDENT# summ_dict = { #NEWLINE# #INDENT# 'date' : '2014-10-05' , #NEWLINE# 'points' : 394.4 , #NEWLINE# 'steps' : 3650 , #NEWLINE# 'calories' : 1687.4735 , #NEWLINE# 'activityCalories' : 412.3124 , #NEWLINE# 'distance' : 1.18 , #NEWLINE# #UNINDENT# } #NEWLINE# end_date = '2014-10-07' #NEWLINE# with HTTMock ( MisfitHttMock ( 'summary_detail' ) . json_http ) : #NEWLINE# #INDENT# summary_list = self . misfit . summary ( start_date = summ_dict [ 'date' ] , end_date = summary , detail = True ) #NEWLINE# #UNINDENT# eq_ ( len ( summary_list ) , 3 ) #NEWLINE# summary = summary_list [ 0 ] #NEWLINE# eq_ ( type ( summary ) , MisfitSummary ) #NEWLINE# self . assert_misfit_string ( summary , summ_dict ) #NEWLINE# eq_ ( summary_list [ 2 ] . date , arrow . get ( end_date ) ) #NEWLINE# eq_ ( summary . data , summ_dict ) #NEWLINE# eq_ ( summary . date , arrow . get ( summ_dict [ 'date' ] ) ) #NEWLINE# eq_ ( summary . points , summ_dict [ 'points' ] ) #NEWLINE# eq_ ( summary . steps , summ_dict [ 'steps' ] ) #NEWLINE# eq_ ( summary . calories , summ_dict [ 'calories' ] ) #NEWLINE# eq_ ( summary . activityCalories , summ_dict [ 'activityCalories' ] ) #NEWLINE# eq_ ( summary . distance , summ_dict [ 'distance' ] )