def test_no_extra(): for d in testSymbols: o, c = d assert parenthetics("{}{}".format(o, c), d) == 0 assert parenthetics("{}{}{}{}".format(o, c, o, c), d) == 0 assert parenthetics("{}{}{}{}".format(o, o, c, c), d) == 0 assert parenthetics("{}adding{}text{}{}".format( o, o, o, o) + testText + "{}works{}too{}{}".format( c, c, c, c), d) == 0