(c *C)
| 289 | } |
| 290 | |
| 291 | func (s *RemoteRepoSuite) TestEncodeDecode(c *C) { |
| 292 | repo := &RemoteRepo{} |
| 293 | err := repo.Decode(s.repo.Encode()) |
| 294 | c.Assert(err, IsNil) |
| 295 | |
| 296 | c.Check(repo.Name, Equals, "yandex") |
| 297 | c.Check(repo.ArchiveRoot, Equals, "http://mirror.yandex.ru/debian/") |
| 298 | } |
| 299 | |
| 300 | func (s *RemoteRepoSuite) TestKey(c *C) { |
| 301 | c.Assert(len(s.repo.Key()), Equals, 37) |