Add test for key equivalence.

This commit is contained in:
Andrey Smirnov
2013-12-21 18:27:48 +04:00
parent acc42e3483
commit 54bcab6a30

View File

@@ -119,6 +119,7 @@ func (s *RemoteRepoSuite) TestKey(c *C) {
func (s *RemoteRepoSuite) TestRefKey(c *C) {
c.Assert(len(s.repo.RefKey()), Equals, 37)
c.Assert(s.repo.RefKey()[0], Equals, byte('E'))
c.Assert(s.repo.RefKey()[1:], DeepEquals, s.repo.Key()[1:])
}
type RemoteRepoCollectionSuite struct {