Comment 6 for bug 595124

Revision history for this message
Brian Murray (brian-murray) wrote : Re: Launchpad's can_expire not being reset when comments added.

So if can_expire really means may expire than the documentation should be updated to reflect that. However, the following test passes and I'm unsure why.

    # Add a comment to the bug report and see if it can still expire
    >>> from lp.bugs.tests.bug import create_old_bug
    >>> ubuntu_bugtask2 = create_old_bug('expirable_distro', 351, ubuntu)
    >>> ubuntu_bugtask2.bug.can_expire
    True
    >>> from lp.testing.factory import LaunchpadObjectFactory
    >>> factory = LaunchpadObjectFactory()
    >>> factory.makeBugComment(bug=ubuntu_bugtask2.bug)
    <Message at...
    >>> ubuntu_bugtask2.bug.can_expire
    False