@@ -167,7 +167,6 @@ func TestHttpBody(t *testing.T) {
167
167
168
168
body := strings .NewReader ("I will get this request body back as response!!" )
169
169
assert .True (HTTPBodyContains (mockT , httpPostHandler , "POST" , "/" , nil , body , "I will get this request body back as response!!" ))
170
- assert .True (HTTPBodyNotContains (mockT , httpPostHandler , "POST" , "/" , nil , nil , "world" ))
171
170
}
172
171
173
172
func TestHttpBodyWrappers (t * testing.T ) {
@@ -181,10 +180,6 @@ func TestHttpBodyWrappers(t *testing.T) {
181
180
assert .False (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "Hello, World!" ))
182
181
assert .False (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "World" ))
183
182
assert .True (mockAssert .HTTPBodyNotContains (httpGetHelloNameHandler , "GET" , "/" , url.Values {"name" : []string {"World" }}, nil , "world" ))
184
-
185
- body := strings .NewReader ("I will get this request body back as response!!" )
186
- assert .True (mockAssert .HTTPBodyContains (httpPostHandler , "POST" , "/" , nil , body , "I will get this request body back as response!!" ))
187
- assert .True (mockAssert .HTTPBodyNotContains (httpPostHandler , "POST" , "/" , nil , nil , "world" ))
188
183
}
189
184
190
185
func httpGetHelloNameHandler (w http.ResponseWriter , r * http.Request ) {
0 commit comments