~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugtask.txt

[r=wgrant][no-qa] Fix most tests to use BugTask.transitionToTarget
 rather than touching the various attributes directly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
615
615
    >>> print current_series_netapplet_task.sourcepackagename.name
616
616
    netapplet
617
617
 
618
 
    >>> current_series_netapplet_task.sourcepackagename = (
619
 
    ...     ubuntu_pmount.sourcepackagename)
 
618
    >>> current_series_netapplet_task.transitionToTarget(
 
619
    ...     ubuntu_pmount.development_version)
620
620
 
621
621
    >>> print generic_netapplet_task.sourcepackagename.name
622
622
    pmount
972
972
 
973
973
    >>> thunderbird = productset.get(8)
974
974
    >>> upstream_task_id = upstream_task.id
975
 
    >>> upstream_task.product = thunderbird
 
975
    >>> upstream_task.transitionToTarget(thunderbird)
976
976
    >>> upstream_task.bugtargetdisplayname
977
977
    u'Mozilla Thunderbird'
978
978