/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2007-08-17 08:38:23 UTC
  • mfrom: (2720 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2723.
  • Revision ID: mbp@sourcefrog.net-20070817083823-nef9si8zr7r11c6l
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
863
863
 
864
864
    def assertSubset(self, sublist, superlist):
865
865
        """Assert that every entry in sublist is present in superlist."""
866
 
        missing = []
867
 
        for entry in sublist:
868
 
            if entry not in superlist:
869
 
                missing.append(entry)
 
866
        missing = set(sublist) - set(superlist)
870
867
        if len(missing) > 0:
871
868
            raise AssertionError("value(s) %r not present in container %r" % 
872
869
                                 (missing, superlist))