예제 #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')
예제 #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'))
예제 #3
0
 def test_array_without_type(self):
     assert not dbusx.check_signature('a')
     assert not dbusx.check_signature('aa')
예제 #4
0
 def test_check_unknown_type(self):
     assert not dbusx.check_signature('_')
     assert not dbusx.check_signature('I')
예제 #5
0
 def test_maximally_nested(self):
     assert dbusx.check_signature(nested_sig(32, 32, 'i'))
예제 #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}')