~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-09 22:11:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070409221122-qh66j4pk3kqxjn9c
Cleanup bzrlib/benchmarks/* so that everything at least has a valid doc string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
868
868
                excName = str(excClass)
869
869
            raise self.failureException, "%s not raised" % excName
870
870
 
871
 
    def assertRaises(self, excClass, func, *args, **kwargs):
 
871
    def assertRaises(self, excClass, callableObj, *args, **kwargs):
872
872
        """Assert that a callable raises a particular exception.
873
873
 
874
874
        :param excClass: As for the except statement, this may be either an
875
875
            exception class, or a tuple of classes.
876
 
        :param func: A callable, will be passed ``*args`` and ``**kwargs``.
 
876
        :param callableObj: A callable, will be passed ``*args`` and
 
877
            ``**kwargs``.
877
878
 
878
879
        Returns the exception so that you can examine it.
879
880
        """
1377
1378
        profiled or debugged so easily.
1378
1379
 
1379
1380
        :param process_args: a list of arguments to pass to the bzr executable,
1380
 
            for example `['--version']`.
 
1381
            for example ``['--version']``.
1381
1382
        :param env_changes: A dictionary which lists changes to environment
1382
1383
            variables. A value of None will unset the env variable.
1383
1384
            The values must be strings. The change will only occur in the