~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-08-16 22:35:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1942.
  • Revision ID: john@arbash-meinel.com-20060816223521-73357694d4b7df0b
One field was incorrect, need text_sha1 not text_size

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006 by Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
22
22
from bzrlib.inventory import Inventory
23
23
import bzrlib.repository as repository
24
24
from bzrlib.tests import TestCaseWithTransport
25
 
from bzrlib.tests import TestUIFactory
 
25
from bzrlib.tests.blackbox import TestUIFactory
26
26
from bzrlib.transport import get_transport
27
27
import bzrlib.ui as ui
28
28
 
41
41
 
42
42
    def test_trivial_reconcile(self):
43
43
        t = bzrdir.BzrDir.create_standalone_workingtree('.')
44
 
        (out, err) = self.run_bzr('reconcile')
 
44
        (out, err) = self.run_bzr_captured(['reconcile'])
45
45
        self.assertEqualDiff(out, "Reconciling repository %s\n"
46
46
                                  "Inventory ok.\n"
47
47
                                  "Reconciliation complete.\n" %
52
52
        t = bzrdir.BzrDir.create_standalone_workingtree('.')
53
53
        # an empty inventory with no revision will trigger reconciliation.
54
54
        repo = t.branch.repository
55
 
        inv = Inventory(revision_id='missing')
56
 
        inv.root.revision='missing'
 
55
        inv = Inventory()
57
56
        repo.add_inventory('missing', inv, [])
58
 
        (out, err) = self.run_bzr('reconcile')
 
57
        (out, err) = self.run_bzr_captured(['reconcile'])
59
58
        self.assertEqualDiff(out, "Reconciling repository %s\n"
60
59
                                  "Backup Inventory created.\n"
61
60
                                  "Inventory regenerated.\n"