def test_iam_path(self):
        for s in ['/%s/' % ('a'*30), ('a'*510) % '/%s/']:
            iam_path(s)
        for s in ['/%s/' % ('a'*511), '/%s/' % ('a'*1025)]:
            with self.assertRaises(ValueError):
                iam_path(s)
dataset/ETHPy150Open cloudtools/troposphere/tests/test_validators.py/TestValidators.test_iam_path/swapped operands of `%`