~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/tests/test_teammembership.py

[r=allenap][no-qa] Remove check_teamparticipation_self() because its
 job is now covered by check_teamparticipation_consistency().

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
from lp.registry.scripts.teamparticipation import (
60
60
    check_teamparticipation_circular,
61
61
    check_teamparticipation_consistency,
62
 
    check_teamparticipation_self,
63
62
    ConsistencyError,
64
63
    fetch_team_participation_info,
65
64
    fix_teamparticipation_consistency,
1121
1120
            re.search('missing TeamParticipation entries for zzzzz', err))
1122
1121
        self.failUnless(
1123
1122
            re.search('spurious TeamParticipation entries for zzzzz', err))
1124
 
        self.failUnless(
1125
 
            re.search('not members of themselves:.*zzzzz.*', err))
1126
1123
 
1127
1124
    def test_report_circular_team_references(self):
1128
1125
        """The script reports circular references between teams.
1259
1256
        logger = BufferLogger()
1260
1257
        self.addDetail("log", logger.content)
1261
1258
        with StormStatementRecorder() as recorder:
1262
 
            check_teamparticipation_self(logger)
1263
1259
            check_teamparticipation_circular(logger)
1264
1260
            check_teamparticipation_consistency(
1265
1261
                logger, fetch_team_participation_info(logger))
1266
 
        self.assertThat(recorder, HasQueryCount(Equals(6)))
 
1262
        self.assertThat(recorder, HasQueryCount(Equals(5)))
1267
1263
 
1268
1264
 
1269
1265
def test_suite():