@@ -0,0 +1,983 @@
+#!/usr/bin/env python3%0A# -*- coding: utf-8 -*-%0A%22%22%22%0ACreated on Tue Oct 24 13:07:58 2017%0A%0A@author: triley%0A%22%22%22%0A%0A%0Aimport subprocess%0A%0A%0Afrom update_bootb import (get_blkids, get_proc_mounts)%0A%0A%0Adef test_get_proc_mounts():%0A    %22%22%22 At least something works. %22%22%22%0A    assert '/' in get_proc_mounts().values()%0A    assert '/boot/efi' in get_proc_mounts().values()%0A    assert '/dev/sda1' in get_proc_mounts().keys()%0A    assert '/dev/sda2' in get_proc_mounts().keys()%0A%0A%0Adef test_get_blkids():%0A%0A    %22%22%22 some sanity checks we can get independently from get_blkids %22%22%22%0A    sources = get_blkids()%0A%0A    # is each partition from blkid also in /proc/partitions ?%0A    result = subprocess.run(%0A        'cat /proc/partitions',%0A        stdout=subprocess.PIPE,%0A        shell=True)%0A    result.check_returncode()%0A    response = result.stdout.decode(%22utf-8%22)%0A    print(sources.keys())%0A    for part in sources.keys():%0A        print(part)%0A        part = part%5B5:9%5D  # strip off /dev/%0A        assert part in response%0A

add test dir