~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Martin Pool
  • Date: 2005-06-24 11:15:37 UTC
  • Revision ID: mbp@sourcefrog.net-20050624111537-92109a441267c8db
- add test for external revert command

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
 
346
346
 
347
347
 
 
348
class RevertCommand(InTempDir):
 
349
    def runTest(self):
 
350
        self.runcmd('bzr init')
 
351
 
 
352
        file('hello', 'wt').write('foo')
 
353
        self.runcmd('bzr add hello')
 
354
        self.runcmd('bzr commit -m setup hello')
 
355
        
 
356
        file('hello', 'wt').write('bar')
 
357
        self.runcmd('bzr revert hello')
 
358
        self.check_file_contents('hello', 'foo')
 
359
 
348
360
    
349
361
        
350
362
 
362
374
                HelpCommands(),
363
375
                UserIdentity(),
364
376
                InvalidCommands(),
365
 
                OldTests()])
 
377
                RevertCommand(),
 
378
                OldTests(),
 
379
                ])
366
380
    return s