def new_test_client(cls, **kwargs):
 client = cls(debug_logging=True)
 client.login(**kwargs)
 return client

def new_test_client ( cls , ** kwargs ) : client = cls ( debug_logging = True ) client . login ( ** kwargs ) return client
make an instance of a client .