#NEWLINE# def test_should_fail_check_auth_arguments_v2( self ) : #NEWLINE# #INDENT# args = '--os-username bob --os-password jan --os-auth-url boop --os-identity-api-version 2.0' #NEWLINE# message = 'ERROR: please specify --os-tenant-id or --os-tenant-name' #NEWLINE# ( argv , remainder ) = self . parser . parse_known_args ( args . split ( ) ) #NEWLINE# api_version = argv . os_identity_api_version #NEWLINE# e = self . assertRaises ( Exception , self . barbican . check_auth_arguments , argv , api_version , True ) #NEWLINE# self . assertIn ( args , str ( e ) )