Example #1
0
 def test_used_at_moves_forward(self):
     image = cleaner.DockerImage(MockImage())
     image.used_at(6)
     image.used_at(8)
     self.assertEqual(8, image.last_used)
Example #2
0
 def test_used_at_does_not_go_backward(self):
     image = cleaner.DockerImage(MockImage())
     image.used_at(4)
     image.used_at(2)
     self.assertEqual(4, image.last_used)
Example #3
0
 def test_used_at_sets_last_used(self):
     image = cleaner.DockerImage(MockImage())
     image.used_at(5)
     self.assertEqual(5, image.last_used)