(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestRequest_SetMethod(t *testing.T) { |
| 83 | client := NewClient() |
| 84 | req := client.Request() |
| 85 | method := "GET" |
| 86 | |
| 87 | req.SetMethod(method) |
| 88 | if req.method != method { |
| 89 | t.Fatalf("expected method to be %s, got %s", method, req.method) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | func TestClient_SendRequest(t *testing.T) { |
| 94 | // Setup a test server |