#NEWLINE# @ mock . patch ( 'magnumclient.v1.baymodels.BayModelManager.create' ) #NEWLINE# def test_baymodel_create_failure_few_arg( self , mock_create ) : #NEWLINE# #INDENT# self . _test_arg_failure ( 'baymodel-create --name test' , self . _mandatory_arg_error ) #NEWLINE# self . assertFalse ( mock_create . called ) #NEWLINE# self . _test_arg_failure ( 'baymodel-create --image-id test' , self . _mandatory_arg_error ) #NEWLINE# self . assertFalse ( mock_create . called ) #NEWLINE# self . _test_arg_failure ( 'baymodel-create --keypair-id test' , self . _mandatory_arg_error ) #NEWLINE# self . assertFalse ( mock_create . called ) #NEWLINE# self . _test_arg_failure ( 'baymodel-create --external-network-id test' , self . _mandatory_arg_error ) #NEWLINE# self . assertFalse ( mock_create . called ) #NEWLINE# self . _test_arg_failure ( 'baymodel-create --coe test' , self . _mandatory_arg_error ) #NEWLINE# self . assertFalse ( mock_create . called ) #NEWLINE# self . _test_arg_failure ( 'baymodel-create' , self . _mandatory_arg_error ) #NEWLINE# self . assertFalse ( mock_create . called )