(t *testing.T)
| 1635 | } |
| 1636 | |
| 1637 | func TestVerbs(t *testing.T) { |
| 1638 | c := testRESTClient(t, nil) |
| 1639 | if r := c.Post(); r.verb != "POST" { |
| 1640 | t.Errorf("Post verb is wrong") |
| 1641 | } |
| 1642 | if r := c.Put(); r.verb != "PUT" { |
| 1643 | t.Errorf("Put verb is wrong") |
| 1644 | } |
| 1645 | if r := c.Get(); r.verb != "GET" { |
| 1646 | t.Errorf("Get verb is wrong") |
| 1647 | } |
| 1648 | if r := c.Delete(); r.verb != "DELETE" { |
| 1649 | t.Errorf("Delete verb is wrong") |
| 1650 | } |
| 1651 | } |
| 1652 | |
| 1653 | func TestAbsPath(t *testing.T) { |
| 1654 | for i, tc := range []struct { |