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