def testRootFilesExceedDiskSize(self):
     """Tests that source files may exceed the raw disk file size limit."""
     self._statvfs_map = {
         "/": image_bundle_test_base.StatvfsResult(1024, 50000, 20000),
         "/tmp": image_bundle_test_base.StatvfsResult(1024, 100000, 90000)
     }
     self._bundle.AddSource("/")
     self._bundle.SetKey('key')
     try:
         self._bundle.Verify()
     except block_disk.InvalidRawDiskError as e:
         print str(e)
         return
     self.fail()
 def testRootRawDiskNotEnoughFreeSpace(self):
     """Tests that there is not enough disk space to complete the operation."""
     self._statvfs_map = {
         "/": image_bundle_test_base.StatvfsResult(1024, 500, 100),
         "/tmp": image_bundle_test_base.StatvfsResult(1024, 500, 100)
     }
     self._bundle.AddSource("/")
     self._bundle.SetKey('key')
     try:
         self._bundle.Verify()
     except block_disk.InvalidRawDiskError as e:
         print str(e)
         return
     self.fail()