~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-22 06:37:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050622063743-e395f04c4db8977f
- move old blackbox code from testbzr into bzrlib.selftest.blackbox

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        f.close()
99
99
 
100
100
        out = backtick("bzr unknowns")
101
 
        self.assertEquals(out, 'test.txt\n')
 
101
        assert out == 'test.txt\n'
102
102
 
103
103
        out = backtick("bzr status")
104
104
        assert out == 'unknown:\n  test.txt\n'
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
 
 
360
348
    
361
349
        
362
350
 
374
362
                HelpCommands(),
375
363
                UserIdentity(),
376
364
                InvalidCommands(),
377
 
                RevertCommand(),
378
 
                OldTests(),
379
 
                ])
 
365
                OldTests()])
380
366
    return s