~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2007-02-09 17:24:23 UTC
  • mto: This revision was merged to the branch mainline in revision 2294.
  • Revision ID: john@arbash-meinel.com-20070209172423-xu5e0b12sf71m0pj
Make sure WorkingTree revision_ids are also returned as utf8 strings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
2
2
# Authors:  Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
269
269
        wt = self.make_branch_and_tree('source')
270
270
        self.assertEqual([], wt.get_parent_ids())
271
271
        wt.commit('A', allow_pointless=True, rev_id='A')
272
 
        self.assertEqual(['A'], wt.get_parent_ids())
 
272
        parent_ids = wt.get_parent_ids()
 
273
        self.assertEqual(['A'], parent_ids)
 
274
        for parent_id in parent_ids:
 
275
            self.assertIsInstance(parent_id, str)
273
276
 
274
277
    def test_set_last_revision(self):
275
278
        wt = self.make_branch_and_tree('source')