def build_path_result_tests(name):
 return build_schema_test(name=str((name + u'Tests')), schema={u'$ref': (u'/endpoints.json#/definitions/' + name)}, schema_store=SCHEMAS, failing_instances={'additionalProperties': [{u'Err': u'', u'Mountpoint': u'/x', u'extra': u'y'}, {u'Result': u'hello'}], 'required': [{}, {u'Mountpoint': u'/x'}], 'type': [[], u'', None]}, passing_instances=[{u'Err': u'Something went wrong.'}, {u'Err': u'', u'Mountpoint': u'/x/'}])

def build_path_result_tests ( name ) : return build_schema_test ( name = str ( ( name + u'Tests' ) ) , schema = { u'$ref' : ( u'/endpoints.json#/definitions/' + name ) } , schema_store = SCHEMAS , failing_instances = { 'additionalProperties' : [ { u'Err' : u'' , u'Mountpoint' : u'/x' , u'extra' : u'y' } , { u'Result' : u'hello' } ] , 'required' : [ { } , { u'Mountpoint' : u'/x' } ] , 'type' : [ [ ] , u'' , None ] } , passing_instances = [ { u'Err' : u'Something went wrong.' } , { u'Err' : u'' , u'Mountpoint' : u'/x/' } ] )
build a test for api commands that respond with err and mountpoint fields .