~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Aaron Bentley
  • Date: 2012-07-13 16:47:00 UTC
  • mto: This revision was merged to the branch mainline in revision 6540.
  • Revision ID: aaron@aaronbentley.com-20120713164700-quzgzctkc2uv9alf
Fix get_uncommitted_data with no stored data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
769
769
        revision_id, records = branch.get_uncommitted_data()
770
770
        self.assertEqual('rev-1', revision_id)
771
771
        self.assertEqual([([], 'q')], list(records))
 
772
 
 
773
    def test_get_uncommitted_data_none(self):
 
774
        branch = self.make_branch('b')
 
775
        revision_id, records = branch.get_uncommitted_data()
 
776
        self.assertIs(None, revision_id)
 
777
        self.assertIs(None, records)