function usergridTestHarness(err, data, done, tests, ignoreError) {
	if (!ignoreError) assert(!err, (err)?err.error_description:"unknown");
	if (tests) {
		if ("function" === typeof tests) {
			tests(err, data);
		} else if (tests.length) {
			tests.forEach(function(test) {
				if ("function" === typeof test) {
					test(err, data);
				}
			})
		}
	}
	done();
}
/*
	A convenience function that will test for the presence of an API error
	and run any number of additional tests
 */
A convenience function that will test for the presence of an API error
and run any number of additional tests
A convenience function that will test for the presence of an API error and run any number of additional tests
function usergridTestHarness(err, data, done, tests, ignoreError) {
	if (!ignoreError) assert(!err, (err)?err.error_description:"unknown");
	if (tests) {
		if ("function" === typeof tests) {
			tests(err, data);
		} else if (tests.length) {
			tests.forEach(function(test) {
				if ("function" === typeof test) {
					test(err, data);
				}
			})
		}
	}
	done();
}
function usergridTestHarness ( err , data , done , tests , ignoreError ) { if ( ! ignoreError ) assert ( ! err , ( err ) ? err . error_description : "unknown" ) ; if ( tests ) { if ( "function" === typeof tests ) { tests ( err , data ) ; } else if ( tests . length ) { tests . forEach ( function ( test ) { if ( "function" === typeof test ) { test ( err , data ) ; } } ) } } done ( ) ; }
A convenience function that will test for the presence of an API error
and run any number of additional tests
A convenience function that will test for the presence of an API error and run any number of additional tests