Beispiel #1
0
 def test_signature_unbalanced_parentheses(self):
     assert not dbusx.check_signature('i)')
     assert not dbusx.check_signature('((i)')
     assert not dbusx.check_signature('{i')
     assert not dbusx.check_signature('i}')
     assert not dbusx.check_signature('{{i')
     assert not dbusx.check_signature('(i')
Beispiel #2
0
 def test_nested_too_much(self):
     assert not dbusx.check_signature(nested_sig(32, 33, 'i'))
     assert not dbusx.check_signature(nested_sig(33, 32, 'i'))
     assert not dbusx.check_signature(nested_sig(33, 33, 'i'))
Beispiel #3
0
 def test_array_without_type(self):
     assert not dbusx.check_signature('a')
     assert not dbusx.check_signature('aa')
Beispiel #4
0
 def test_check_unknown_type(self):
     assert not dbusx.check_signature('_')
     assert not dbusx.check_signature('I')
Beispiel #5
0
 def test_maximally_nested(self):
     assert dbusx.check_signature(nested_sig(32, 32, 'i'))
Beispiel #6
0
 def test_check_signature(self):
     assert dbusx.check_signature('i')
     assert dbusx.check_signature('ii')
     assert dbusx.check_signature('(ii)')
     assert dbusx.check_signature('{ss}')