~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_switch.py

  • Committer: Aaron Bentley
  • Date: 2012-07-23 16:57:58 UTC
  • mto: This revision was merged to the branch mainline in revision 6540.
  • Revision ID: aaron@aaronbentley.com-20120723165758-wxqhfigzg6orby7l
Update blackbox test to show storing and restoring in one switch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
505
505
        self.build_tree(['checkout/a'])
506
506
        self.assertPathExists('checkout/a')
507
507
        checkout.add('a')
 
508
        return checkout
508
509
 
509
510
    def test_store_and_restore_uncommitted(self):
510
 
        self.prepare()
 
511
        checkout = self.prepare()
511
512
        self.run_bzr(['switch', '--store', '-d', 'checkout', 'new'])
 
513
        self.build_tree(['checkout/b'])
 
514
        checkout.add('b')
512
515
        self.assertPathDoesNotExist('checkout/a')
 
516
        self.assertPathExists('checkout/b')
513
517
        self.run_bzr(['switch', '--store', '-d', 'checkout', 'orig'])
514
518
        self.assertPathExists('checkout/a')
 
519
        self.assertPathDoesNotExist('checkout/b')
515
520
 
516
521
    def test_does_not_store(self):
517
522
        self.prepare()