~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testfetch.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-27 04:42:41 UTC
  • mfrom: (1092.1.43)
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050827044241-23d676133b9fc981
Merge of robertc@robertcollins.net-20050826013321-52eee1f1da679ee9

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import sys
21
21
import os
22
22
 
23
 
from bzrlib.selftest import TestCaseInTempDir
 
23
from testsweet import InTempDir
24
24
        
25
25
 
26
 
class TestFetch(TestCaseInTempDir):
 
26
class TestFetch(InTempDir):
27
27
    def runTest(self):
 
28
        from bzrlib.commit import commit
28
29
        from bzrlib.fetch import greedy_fetch, has_revision
 
30
        from bzrlib.selftest.testrevision import make_branches
29
31
 
30
32
        def new_branch(name):
31
33
            os.mkdir(name)
32
 
            return Branch.initialize(name)
 
34
            return Branch(name, init=True)
33
35
            
34
36
        #highest indices a: 5, b: 7
35
37
        br_a, br_b = make_branches()
91
93
 
92
94
 
93
95
if __name__ == '__main__':
94
 
    import unittest
95
 
    sys.exit(unittest.run_suite(unittest.makeSuite()))
 
96
    import sys
 
97
    sys.exit(run_suite(unittest.makeSuite()))