Listing of packages in snapshot.

This commit is contained in:
Andrey Smirnov
2013-12-23 14:29:41 +04:00
parent fe61ae1b41
commit 4d950b79ab
5 changed files with 39 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@ func (s *SnapshotSuite) TestNewSnapshotFromRepository(c *C) {
snapshot, _ := NewSnapshotFromRepository("snap1", s.repo)
c.Check(snapshot.Name, Equals, "snap1")
c.Check(snapshot.NumPackages(), Equals, 3)
c.Check(snapshot.RefList().Len(), Equals, 3)
s.repo.packageRefs = nil
_, err := NewSnapshotFromRepository("snap2", s.repo)