@@ -173,13 +173,13 @@ func TestHttpBodyWrappers(t *testing.T) {
173
173
assert := New (t )
174
174
mockAssert := New (new (testing.T ))
175
175
176
- assert .True (mockAssert .HTTPBodyContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "Hello, World!" ))
177
- assert .True (mockAssert .HTTPBodyContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "World" ))
178
- assert .False (mockAssert .HTTPBodyContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "world" ))
176
+ assert .True (mockAssert .HTTPBodyContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil ,"Hello, World!" ))
177
+ assert .True (mockAssert .HTTPBodyContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil ,"World" ))
178
+ assert .False (mockAssert .HTTPBodyContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil ,"world" ))
179
179
180
180
assert .False (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "Hello, World!" ))
181
- assert .False (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "World" ))
182
- assert .True (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "world" ))
181
+ assert .False (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil ,"World" ))
182
+ assert .True (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil ,"world" ))
183
183
}
184
184
185
185
func httpGetHelloNameHandler (w http.ResponseWriter , r * http.Request ) {
@@ -195,4 +195,4 @@ func httpPostHandler(w http.ResponseWriter, r *http.Request) {
195
195
}
196
196
197
197
w .Write (body )
198
- }
198
+ }
0 commit comments