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:
900
900
bugtasks = view.searchUnbatched(prejoins=prejoins)
901
901
[bugtask.owner for bugtask in bugtasks]
902
902
self.assertThat(recorder, HasQueryCount(LessThan(3)))