~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Merge HEAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
            raise AssertionError('string %r does not start with %r' % (s, prefix))
304
304
 
305
305
    def assertEndsWith(self, s, suffix):
306
 
        if not s.endswith(prefix):
 
306
        """Asserts that s ends with suffix."""
 
307
        if not s.endswith(suffix):
307
308
            raise AssertionError('string %r does not end with %r' % (s, suffix))
308
309
 
309
310
    def assertContainsRe(self, haystack, needle_re):
824
825
            # FIXME: make this use a single transport someday. RBC 20060418
825
826
            return format.initialize_on_transport(get_transport(relpath))
826
827
        except errors.UninitializableFormat:
827
 
            raise TestSkipped("Format %s is not initializable.")
 
828
            raise TestSkipped("Format %s is not initializable." % format)
828
829
 
829
830
    def make_repository(self, relpath, shared=False, format=None):
830
831
        """Create a repository on our default transport at relpath."""