Debian Codegraph @

tests/hitaki-functions

raw
1 #!/usr/bin/env python3
2
3 from sys import exit
4 from errno import ENXIO
5
6 import gi
7 gi.require_version('Hitaki', '0.0')
8 from gi.repository import Hitaki
9
10 from helper import test_functions
11
12 types = {
13 Hitaki.AlsaFirewireError: (
14 'quark',
15 'to_label',
16 ),
17 Hitaki.EfwProtocolError: (
18 'quark',
19 'to_label',
20 ),
21 }
22
23 for target_type, functions in types.items():
24 if not test_functions(target_type, functions):
25 exit(ENXIO)