~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/test_person_view.py

  • Committer: Nigel Babu
  • Date: 2011-08-29 07:44:17 UTC
  • mto: This revision was merged to the branch mainline in revision 13818.
  • Revision ID: nigelbabu@gmail.com-20110829074417-j12sr9o75464h627
Changes per review

Show diffs side-by-side

added added

removed removed

Lines of Context:
895
895
        view = create_initialized_view(self.person, self.view_name)
896
896
        Store.of(self.subscribed_bug).invalidate()
897
897
        with StormStatementRecorder() as recorder:
898
 
            prejoins = [(Person, LeftJoin(Person,
899
 
                BugTask.owner == Person.id))]
 
898
            prejoins = [
 
899
                    (Person, LeftJoin(Person, BugTask.owner == Person.id))]
900
900
            bugtasks = view.searchUnbatched(prejoins=prejoins)
901
901
            [bugtask.owner for bugtask in bugtasks]
902
902
        self.assertThat(recorder, HasQueryCount(LessThan(3)))