def test_ticket_custom_field_default_values(self):
        tid = self._insert_ticket("The summary")
        self.env.config.set('ticket-custom', 'baz', 'text')
        self.env.config.set('ticket-custom', 'baz.value', 'Something')
        self.env.config.set('ticket-custom', 'bar', 'select')
        self.env.config.set('ticket-custom', 'bar.options', 'one|two|three')
        self.env.config.set('ticket-custom', 'bar.value', 'two')
        TicketSystem(self.env).reset_ticket_fields()
        del TicketSystem(self.env).custom_fields
        ticket = Ticket(self.env, tid)

        self.assertEqual('Something', ticket['baz'])
        self.assertEqual('two', ticket['bar'])
Unsubscribe view
dataset/ETHPy150Open edgewall/trac/trac/ticket/tests/model.py/TicketTestCase.test_ticket_custom_field_default_values--crossover with--dataset/ETHPy150Open allink/pennyblack/pennyblack/module/subscriber/views.py/unsubscribe