Skip to content

Commit

Permalink
add test for new import check
Browse files Browse the repository at this point in the history
  • Loading branch information
termie committed Mar 22, 2011
1 parent 6cce188 commit 836f360
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_basic.py
Expand Up @@ -124,10 +124,8 @@ def _setup_bzr_branches(self):
bzr('init', BZRBRANCH)
cd(BZRBRANCH)
open('touch.txt', 'w').write('touch')
print "hmm?"
bzr('add', '-v', 'touch.txt')
bzr('commit', '-v', '-m', 'touch test')
print "hmm2?"
open('touch2.txt', 'w').write('touch2')
bzr('add', 'touch2.txt')
bzr('commit', '-m', 'touch2 test')
Expand Down Expand Up @@ -220,7 +218,6 @@ def test_all(self):
gitbzr('push')

def test_push_relative_path(self):
logging.getLogger().setLevel(logging.DEBUG)
cd('%s_cloned' % BZRBRANCH)
open('touch2.txt', 'w').write('CLONED')
git('add', 'touch2.txt')
Expand All @@ -242,6 +239,10 @@ def test_push_relative_path(self):
bzr('checkout', '.')
self.assertEqual('CLONED2', open('%s_new/touch2.txt' % BZRBRANCH).read())

def test_import_no_url(self):
self.assertRaises(subprocess.CalledProcessError, gitbzr, 'import')


class GitBzrHeadTest(GitBzrTest):
def _symlink_plugin(self):
try:
Expand Down

0 comments on commit 836f360

Please sign in to comment.