def test_fstab_get_uuid(self):
     apt_btrfs = AptBtrfsSnapshot(
         fstab=os.path.join(self.testdir, "data", "fstab"))
     self.assertEqual(apt_btrfs._uuid_for_mountpoint("/"),
                      "UUID=fe63f598-1906-478e-acc7-f74740e78d1f")
 def test_parser_older_than_to_unixtime(self):
     apt_btrfs = AptBtrfsSnapshot(
         fstab=os.path.join(self.testdir, "data", "fstab"))
     t = apt_btrfs._parse_older_than_to_unixtime("5d")
     self.assertTrue((t < time.time()) - (5 * 60 * 60 * 24))