def test_dcos_client_api(mock_dcos_client):
 args = get_args_from_env()
 args['auth_user'] = None
 cluster = DcosApiSession(**args)
 r = cluster.get('', node='123.123.123.123')
 r.raise_for_status()
 cluster.get('')
 cluster.post('')
 cluster.put('')
 cluster.delete('')
 cluster.head('')
 cluster.patch('')
 cluster.options('')

def test_dcos_client_api ( mock_dcos_client ) : args = get_args_from_env ( ) args [ 'auth_user' ] = None cluster = DcosApiSession ( ** args ) r = cluster . get ( '' , node = '123.123.123.123' ) r . raise_for_status ( ) cluster . get ( '' ) cluster . post ( '' ) cluster . put ( '' ) cluster . delete ( '' ) cluster . head ( '' ) cluster . patch ( '' ) cluster . options ( '' )
tests two critical aspects of the dcosapisession 1 .