def __alter_to_trac_with_all_permissions(self, trac=None): if trac is None: trac = DummyTrac() trac.is_valid_connection = True trac.get_only = False url = 'http://%s:%s@%s' % (INVALID_USER, INVALID_PASSWORD, INVALID_REALM) trac.url = url return trac
def __alter_to_trac_with_invalid_connection(self, trac=None): if trac is None: trac = DummyTrac() trac.is_valid_connection = False return trac
def test_init(self): trac = DummyTrac() self.assert_is_none(trac.is_valid_connection) self.assert_is_none(trac.get_only) self.assert_equal(trac.ticket_counter, 0)