#NEWLINE# def test_exact_same_name( self ) : #NEWLINE# #INDENT# state = self . geographies . find_one ( { #NEWLINE# #INDENT# 'geoid' : '15' , #NEWLINE# #UNINDENT# } ) #NEWLINE# urban_and_rural_pop_2000 = 1211537 #NEWLINE# urban_and_rural_pop_2010 = 1360301 #NEWLINE# delta = ( urban_and_rural_pop_2010 - urban_and_rural_pop_2000 ) #NEWLINE# pct_change = ( float ( ( urban_and_rural_pop_2010 - urban_and_rural_pop_2000 ) ) / urban_and_rural_pop_2000 ) #NEWLINE# self . assertEqual ( float ( state [ 'data' ] [ '2000' ] [ 'P2' ] [ 'P002001' ] ) , urban_and_rural_pop_2000 ) #NEWLINE# self . assertEqual ( float ( state [ 'data' ] [ '2010' ] [ 'P2' ] [ 'P002001' ] ) , urban_and_rural_pop_2010 ) #NEWLINE# self . assertEqual ( float ( state [ 'data' ] [ 'delta' ] [ 'P2' ] [ 'P002001' ] ) , delta ) #NEWLINE# self . assertAlmostEqual ( float ( state [ 'data' ] [ 'pct_change' ] [ 'P2' ] [ 'P002001' ] ) , pct_change )