diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-13 20:07:21 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-13 20:07:21 +0200 |
commit | a65bcbc63bef24cf219c63d1b8cfb309c95d1c0f (patch) | |
tree | 973644feaf08adc916dab8fb95d1f6c86194c9c1 /clients/http/common_test.go | |
parent | a6ea9e8dd2eda48c8405f609e0fb444d3717af53 (diff) | |
download | go-git-a65bcbc63bef24cf219c63d1b8cfb309c95d1c0f.tar.gz |
clients: new Endpoint implementation and InstallProtocol function
Diffstat (limited to 'clients/http/common_test.go')
-rw-r--r-- | clients/http/common_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clients/http/common_test.go b/clients/http/common_test.go index 7bd9708..d3e2c9d 100644 --- a/clients/http/common_test.go +++ b/clients/http/common_test.go @@ -13,6 +13,13 @@ type SuiteCommon struct{} var _ = Suite(&SuiteCommon{}) +func (s *SuiteCommon) TestNewBasicAuth(c *C) { + a := NewBasicAuth("foo", "qux") + + c.Assert(a.Name(), Equals, "http-basic-auth") + c.Assert(a.String(), Equals, "http-basic-auth - foo:*******") +} + func (s *SuiteCommon) TestNewHTTPError200(c *C) { res := &http.Response{StatusCode: 200} res.StatusCode = 200 |