/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 tests.py

  • Committer: Jeff Licquia
  • Date: 2008-04-03 03:58:11 UTC
  • mto: (0.54.69 automated)
  • mto: This revision was merged to the branch mainline in revision 6630.
  • Revision ID: jeff@licquia.org-20080403035811-x9a3m7pg33ycrrjw
Make reset a no-op if no bisection is in progress.

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
        self.run_bzr(['bisect', 'reset'])
282
282
        self.assertRevno(5)
283
283
 
 
284
        # Check that reset doesn't do anything unless there's a
 
285
        # bisection in progress.
 
286
 
 
287
        test_file = open("test_file", "w")
 
288
        test_file.write("keep me")
 
289
        test_file.close()
 
290
 
 
291
        self.run_bzr(['bisect', 'reset'])
 
292
 
 
293
        test_file = open("test_file")
 
294
        content = test_file.read().strip()
 
295
        test_file.close()
 
296
        self.failUnless(content == "keep me")
 
297
 
284
298
    def testLog(self):
285
299
        "Test saving the current bisection state, and re-loading it."
286
300