#NEWLINE# def test_init_lookup_error( self , logMock ) : #NEWLINE# #INDENT# no_exspec = { #NEWLINE# #INDENT# 'volume_types' : [ { #NEWLINE# #INDENT# 'id' : '1' , #NEWLINE# 'name' : 'san' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# ( self . vtl , volume_types ) = _set_up_vol_types_vtl ( json . dumps ( no_exspec ) ) #NEWLINE# logMock . assert_called_with ( 'Expects volume_types with "extra_specs" key.  Replaced with default values.' ) #NEWLINE# self . _check_expected ( volume_types )