~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2011-01-12 21:28:39 UTC
  • mfrom: (5602 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5605.
  • Revision ID: john@arbash-meinel.com-20110112212839-lfzo8o183tw10gnd
Merge bzr.dev 5602 to, yet again, resolve a NEWS/bzr-2.3.txt conflict

Show diffs side-by-side

added added

removed removed

Lines of Context:
1336
1336
        if haystack.find(needle) == -1:
1337
1337
            self.fail("string %r not found in '''%s'''" % (needle, haystack))
1338
1338
 
 
1339
    def assertNotContainsString(self, haystack, needle):
 
1340
        if haystack.find(needle) != -1:
 
1341
            self.fail("string %r found in '''%s'''" % (needle, haystack))
 
1342
 
1339
1343
    def assertSubset(self, sublist, superlist):
1340
1344
        """Assert that every entry in sublist is present in superlist."""
1341
1345
        missing = set(sublist) - set(superlist)