#NEWLINE# def test_simple_block( self ) : #NEWLINE# #INDENT# '\n        Data import test against known values for Block 3029 in Tract 210.05, HI.\n        \n        Note: The test block had the same geography but a different name in 2000.\n        It was geoid 150010210011277 in that census.\n        ' #NEWLINE# if ( config . SUMLEV_BLOCK not in config . SUMLEVS ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# blocks = self . geographies . find ( { #NEWLINE# #INDENT# 'geoid' : '150010210053029' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( blocks . count ( ) , 1 ) #NEWLINE# block = self [ 0 ] #NEWLINE# self . assertEqual ( block [ 'sumlev' ] , config . SUMLEV_BLOCK ) #NEWLINE# self . assertEqual ( block [ 'metadata' ] [ 'NAME' ] , 'Block 3029' ) #NEWLINE# self . assertEqual ( block [ 'metadata' ] [ 'STATE' ] , '15' ) #NEWLINE# self . assertEqual ( block [ 'metadata' ] [ 'COUNTY' ] , '001' ) #NEWLINE# self . assertEqual ( block [ 'metadata' ] [ 'TRACT' ] , '021005' ) #NEWLINE# pop_2000 = 33 #NEWLINE# pop_2010 = 93 #NEWLINE# self . _test_totalpop ( block , pop_2000 , pop_2010 )