~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/tracker/models/tests/test_testperson.py

  • Committer: Marc Tardif
  • Date: 2012-03-21 22:32:04 UTC
  • Revision ID: marc.tardif@canonical.com-20120321223204-8g7mvzzwmh8ifbrt
Added support for getting systems from a person (LP #899361)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    TestPersonSearchParams,
18
18
    )
19
19
from lpresults.tracker.models.teststore import get_test_stores
 
20
from lpresults.tracker.models.tests.test_testrank import (
 
21
    TestHasTestRankSystemsMixin,
 
22
    )
20
23
from lpresults.tracker.models.tests.test_teststat import (
21
24
    TestHasTestStatPeopleMixin,
22
25
    TestTestStatPersonMixin,
96
99
            self.assertEquals(person_twin.person, person)
97
100
 
98
101
 
 
102
class TestHasTestRankSystems(
 
103
    TestCaseWithFactory, TestHasTestRankSystemsMixin):
 
104
 
 
105
    def getContainer(self):
 
106
        return self.factory.makeTestPerson()
 
107
 
 
108
    def getTestTarget(self):
 
109
        return self.factory.makeTestProject()
 
110
 
 
111
 
99
112
class TestHasTestStatPeople(
100
113
    TestCaseWithFactory, TestHasTestStatPeopleMixin):
101
114