func TestFallbackDefault(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	// Setup the test server.
	mux := newMultiplexer(assert)
	ts := restaudit.StartServer(mux, assert)
	defer ts.Close()
	err := mux.Register("testing", "index", NewTestHandler("default", assert))
	assert.Nil(err)
	// Perform test requests.
	req := restaudit.NewRequest("GET", "/base/x/y")
	resp := ts.DoRequest(req)
	resp.AssertBodyContains(`Resource: y`)
}
// TestFallbackDefault tests the fallback to default.
TestFallbackDefault tests the fallback to default.
// TestFallbackDefault tests the fallback to default .
func TestFallbackDefault(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	mux := newMultiplexer(assert)
	ts := restaudit.StartServer(mux, assert)
	defer ts.Close()
	err := mux.Register("testing", "index", NewTestHandler("default", assert))
	assert.Nil(err)
	req := restaudit.NewRequest("GET", "/base/x/y")
	resp := ts.DoRequest(req)
	resp.AssertBodyContains(`Resource: y`)
}
func TestFallbackDefault ( t * testing . T ) { assert := audit . NewTestingAssertion ( t , true ) mux := newMultiplexer ( assert ) ts := restaudit . StartServer ( mux , assert ) defer ts . Close ( ) err := mux . Register ( " " , " " , NewTestHandler ( " " , assert ) ) assert . Nil ( err ) req := restaudit . NewRequest ( " " , " " ) resp := ts . DoRequest ( req ) resp . AssertBodyContains ( `Resource: y` ) }
TestFallbackDefault tests the fallback to default.
TestFallbackDefault tests the fallback to default .
// Setup the test server. // Perform test requests.