/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: John Arbash Meinel
  • Date: 2007-08-08 14:34:56 UTC
  • mfrom: (2685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2688.
  • Revision ID: john@arbash-meinel.com-20070808143456-wa00r4p8r146p689
[merge] bzr.dev 2685

Show diffs side-by-side

added added

removed removed

Lines of Context:
1345
1345
        working_dir = kwargs.pop('working_dir', None)
1346
1346
        error_regexes = kwargs.pop('error_regexes', [])
1347
1347
 
 
1348
        if kwargs:
 
1349
            raise TypeError("run_bzr() got unexpected keyword arguments '%s'"
 
1350
                            % kwargs.keys())
 
1351
 
1348
1352
        if len(args) == 1:
1349
1353
            if isinstance(args[0], (list, basestring)):
1350
1354
                args = args[0]
1386
1390
 
1387
1391
            # Make sure that commit is failing because there is nothing to do
1388
1392
            self.run_bzr_error(['no changes to commit'],
1389
 
                               'commit', '-m', 'my commit comment')
 
1393
                               ['commit', '-m', 'my commit comment'])
1390
1394
            # Make sure --strict is handling an unknown file, rather than
1391
1395
            # giving us the 'nothing to do' error
1392
1396
            self.build_tree(['unknown'])
1393
1397
            self.run_bzr_error(['Commit refused because there are unknown files'],
1394
 
                               'commit', '--strict', '-m', 'my commit comment')
 
1398
                               ['commit', --strict', '-m', 'my commit comment'])
1395
1399
        """
1396
1400
        kwargs.setdefault('retcode', 3)
1397
1401
        kwargs['error_regexes'] = error_regexes
2284
2288
                   'bzrlib.tests.test_escaped_store',
2285
2289
                   'bzrlib.tests.test_extract',
2286
2290
                   'bzrlib.tests.test_fetch',
2287
 
                   'bzrlib.tests.test_file_names',
2288
2291
                   'bzrlib.tests.test_ftp_transport',
2289
2292
                   'bzrlib.tests.test_generate_docs',
2290
2293
                   'bzrlib.tests.test_generate_ids',