def add_comment(self, ticketid, comment=None):
        """Adds a comment to the given ticket ID, assumes ticket exists."""
        self.go_to_ticket(ticketid)
        if comment is None:
            comment = random_sentence()
        tc.formvalue('propertyform', 'comment', comment)
        tc.submit("submit")
        # Verify we're where we're supposed to be.
        # The fragment is stripped since Python 2.7.1, see:
        # http://trac.edgewall.org/ticket/9990#comment:18
        tc.url(self.url + ticketid % '/ticket/%s(?:#comment:.*)?$')
        return comment
dataset/ETHPy150Open edgewall/trac/trac/tests/functional/tester.py/FunctionalTester.add_comment/swapped operands of `%`