#!/usr/bin/env python3

from subprocess import check_output
import re


def main():
    out = check_output(['./ykman', '-v'], timeout=10)
    print('ykman')
    print(out.decode('utf8'))

    assert re.search(br'libykpers\s+(1\.\d+\.\d+)', out)
    assert re.search(br'libu2f-host0?\s+(1\.\d+\.\d+)', out)
    assert re.search(br'libusb', out)


if __name__ == '__main__':
    main()

@@ -242,69 +242,8 @@
 ut)%0A
-    assert re.search(br'libu2f-host0?%5Cs+(1%5C.%5Cd+%5C.%5Cd+)', out)%0A
     

remove libu2f-host from test.py