#NEWLINE# def test_coe_service_create_fail( self ) : #NEWLINE# #INDENT# CREATE_SVC_FAIL = copy . deepcopy ( CREATE_SVC ) #NEWLINE# CREATE_SVC_FAIL [ 'wrong_key' ] = 'wrong' #NEWLINE# self . assertRaisesRegexp ( exceptions . InvalidAttribute , ( 'Key must be in %s' % ',' . join ( services . CREATION_ATTRIBUTES ) ) , self . mgr . create , ** CREATE_SVC_FAIL ) #NEWLINE# self . assertEqual ( [ ] , self . api . calls )