~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2006-05-18 14:19:48 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060518141948-7c5c473382991df5
Got import command working

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        self.assertIs(True, 'checkout' not in lines)
99
99
        self.assertIs(True, 'checkout/.bzr/subcheckout' not in lines)
100
100
 
 
101
    def test_import_upstream(self):
 
102
        self.runbzr('init source')
 
103
        os.mkdir('source/src')
 
104
        f = file('source/src/myfile', 'wb')
 
105
        f.write('hello?')
 
106
        f.close()
 
107
        os.chdir('source')
 
108
        self.runbzr('add')
 
109
        self.runbzr('commit -m hello')
 
110
        self.runbzr('export ../source-0.1.tar.gz')
 
111
        os.mkdir('../import')
 
112
        os.chdir('../import')
 
113
        self.runbzr('import ../source-0.1.tar.gz')
 
114
 
 
115
 
101
116
def test_suite():
102
117
    return makeSuite(TestBzrTools)