def METHOD_NAME(self):
    mounts = mountinfo.MountInfo(mountinfo_file=self._write_mountinfo(""))
    raised = self.assertRaises(
        errors.RootNotMountedError, mounts.for_root, "test-root"
    )
    self.assertThat(raised.root, Equals("test-root"))