~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/browser/tests/test_builder.py

  • Committer: Raphael Badin
  • Date: 2012-01-05 14:27:10 UTC
  • mto: This revision was merged to the branch mainline in revision 14654.
  • Revision ID: raphael.badin@canonical.com-20120105142710-texmeru3b5wghc0g
cacheĀ currentjob.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
        self.assertThat(
86
86
            recorder2,
87
 
            HasQueryCount(LessThan(recorder1.count + 2 * nb_objects + 1)))
 
87
            HasQueryCount(LessThan(recorder1.count + 1 * nb_objects + 1)))
88
88
 
89
89
    def test_builders_recipe_build_query_count(self):
90
90
        def create_build():
98
98
 
99
99
        self.assertThat(
100
100
            recorder2,
101
 
            HasQueryCount(LessThan(recorder1.count + 2 * nb_objects + 1)))
 
101
            HasQueryCount(LessThan(recorder1.count + 1 * nb_objects + 1)))
102
102
 
103
103
    def test_builders_translation_template_build_query_count(self):
104
104
        def create_build():
118
118
 
119
119
        self.assertThat(
120
120
            recorder2,
121
 
            HasQueryCount(LessThan(recorder1.count + 2 * nb_objects + 1)))
 
121
            HasQueryCount(LessThan(recorder1.count + 1 * nb_objects + 1)))