func (s *runnerCleanupSuite) TestExecDoesNotCallDeleteWithouExcedentImages(c *check.C) {
	base := 10
	for i := imagesToKeep - 1; i >= 0; i-- {
		s.cloudClient.versions = append(
			s.cloudClient.versions,
			cloud.GetImageID(s.options, i+base))
	}

	s.subject.Exec(s.options)

	c.Assert(len(s.cloudClient.deleteCalls), check.Equals, 0)
}
func (s *runnerCleanupSuite) TestExecCallsDeleteForExcedentImages(c *check.C) {
	excedent := 2
	base := 10
	for i := imagesToKeep + excedent; i >= 0; i-- {
		s.cloudClient.versions = append(
			s.cloudClient.versions,
			cloud.GetImageID(s.options, i+base))
	}

	s.subject.Exec(s.options)

	expectedCall := getDeleteKey(s.cloudClient.versions[imagesToKeep:])

	c.Assert(s.cloudClient.deleteCalls[expectedCall], check.Equals, 1)
}