~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_rspush.py

  • Committer: Aaron Bentley
  • Date: 2008-02-13 04:58:32 UTC
  • Revision ID: aaron@aaronbentley.com-20080213045832-ohymgqf0quamuhye
Update email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        checkout = branch.create_checkout('checkout', lightweight=True)
73
73
        checkout.commit('some changes')
74
74
        mock_rsync = MockRSync()
75
 
        e = self.assertRaises(NotStandalone, rspush, checkout,
76
 
                              'example.org:foo', _rsync=mock_rsync)
77
 
        self.assertContainsRe(str(e), '/checkout/ is not a standalone tree.$')
 
75
        self.assertRaises(NotStandalone, rspush, checkout, 'example.org:foo',
 
76
                          _rsync=mock_rsync)
78
77
 
79
78
    def test_refuse_checkout(self):
80
79
        branch = self.make_branch('tree')