~gmb/launchpad/heat-garbo-hourly-to-daily-bug-509195

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/browser-views.txt

  • Committer: Graham Binns
  • Date: 2010-01-22 16:55:45 UTC
  • mfrom: (7675.442.106 launchpad)
  • Revision ID: graham@canonical.com-20100122165545-x4dbtbbh6lhuww2y
Merged db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
attribute has the required attribute to sort.
36
36
 
37
37
    >>> from lp.registry.browser import get_status_counts
38
 
    >>> from lp.registry.interfaces.distroseries import DistroSeriesStatus
 
38
    >>> from lp.registry.interfaces.series import SeriesStatus
39
39
 
40
40
    >>> class Concept:
41
41
    ...     def __init__(self, status, person):
48
48
    >>> a_person = factory.makePerson(name='andy', displayname="Andy")
49
49
    >>> b_person = factory.makePerson(name='bob', displayname="Bob")
50
50
 
51
 
    >>> concept_1 = Concept(DistroSeriesStatus.EXPERIMENTAL, a_person)
52
 
    >>> artefact_2 = Artefact(DistroSeriesStatus.EXPERIMENTAL, b_person)
53
 
    >>> artefact_3 = Artefact(DistroSeriesStatus.CURRENT, b_person)
 
51
    >>> concept_1 = Concept(SeriesStatus.EXPERIMENTAL, a_person)
 
52
    >>> artefact_2 = Artefact(SeriesStatus.EXPERIMENTAL, b_person)
 
53
    >>> artefact_3 = Artefact(SeriesStatus.CURRENT, b_person)
54
54
 
55
55
The common example is for counting the status enums for an object. The default
56
56
rule is to sort on the 'sortkey' attribute of the object being counted.