~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/tests/test_bug.py

  • Committer: Brad Crittenden
  • Date: 2011-08-04 00:59:46 UTC
  • mto: (13627.2.1 bug-813322-2)
  • mto: This revision was merged to the branch mainline in revision 13715.
  • Revision ID: bac@canonical.com-20110804005946-030kaefvuljz5j3z
Horrible checkpoint

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
__metaclass__ = type
5
5
 
6
6
from storm.store import Store
7
 
from testtools.matchers import Equals
 
7
from testtools.matchers import LessThan
8
8
 
9
9
from canonical.testing.layers import DatabaseFunctionalLayer
10
10
from lp.bugs.enum import BugNotificationLevel
155
155
            Store.of(bug).flush()
156
156
            with StormStatementRecorder() as recorder:
157
157
                previous_dup.markAsDuplicate(bug)
158
 
                self.assertThat(recorder, HasQueryCount(Equals(1)))
 
158
                self.assertThat(recorder, HasQueryCount(LessThan(130)))
159
159
 
160
160
    def test_get_subscribers_from_duplicates_with_private_team(self):
161
161
        product = self.factory.makeProduct()