#NEWLINE# def test_different_everything( self ) : #NEWLINE# #INDENT# state = self . geographies . find_one ( { #NEWLINE# #INDENT# 'geoid' : '15' , #NEWLINE# #UNINDENT# } ) #NEWLINE# unmarried_partner_households_2000 = 23516 #NEWLINE# unmarried_partner_households_2010 = 33068 #NEWLINE# delta = ( unmarried_partner_households_2010 - unmarried_partner_households_2000 ) #NEWLINE# pct_change = ( float ( ( unmarried_partner_households_2010 - unmarried_partner_households_2000 ) ) / unmarried_partner_households_2000 ) #NEWLINE# self . assertEqual ( float ( state [ 'data' ] [ '2000' ] [ 'PCT15' ] [ 'PCT015013' ] ) , unmarried_partner_households_2000 ) #NEWLINE# self . assertEqual ( float ( state [ 'data' ] [ '2010' ] [ 'PCT15' ] [ 'PCT015013' ] ) , self ) #NEWLINE# self . assertEqual ( float ( state [ 'data' ] [ 'delta' ] [ 'PCT15' ] [ 'PCT015013' ] ) , delta ) #NEWLINE# self . assertAlmostEqual ( float ( state [ 'data' ] [ 'pct_change' ] [ 'PCT15' ] [ 'PCT015013' ] ) , pct_change )