@pytest.mark.bzr
def test_freeze_bazaar_clone(script, tmpdir):
 try:
  checkout_path = _create_test_package(script, vcs='bazaar')
 except OSError as e:
  pytest.fail(('Invoking `bzr` failed: %s' % e))
 result = script.run('bzr', 'checkout', checkout_path, 'bzr-package')
 result = script.run('python', 'setup.py', 'develop', cwd=(script.scratch_path / 'bzr-package'), expect_stderr=True)
 result = script.pip('freeze', expect_stderr=True)
 expected = textwrap.dedent('        ...-e bzr+file://...@1#egg=version_pkg\n        ...')
 _check_output(result.stdout, expected)
 result = script.pip('freeze', '-f', ('%s/#egg=django-wikiapp' % checkout_path), expect_stderr=True)
 expected = textwrap.dedent(('        -f %(repo)s/#egg=django-wikiapp\n        ...-e bzr+file://...@...#egg=version_pkg\n        ...' % {'repo': checkout_path}))
 _check_output(result.stdout, expected)

@ pytest . mark . bzr def test_freeze_bazaar_clone ( script , tmpdir ) : try : checkout_path = _create_test_package ( script , vcs = 'bazaar' ) except OSError as e : pytest . fail ( ( 'Invoking `bzr` failed: %s' % e ) ) result = script . run ( 'bzr' , 'checkout' , checkout_path , 'bzr-package' ) result = script . run ( 'python' , 'setup.py' , 'develop' , cwd = ( script . scratch_path / 'bzr-package' ) , expect_stderr = True ) result = script . pip ( 'freeze' , expect_stderr = True ) expected = textwrap . dedent ( '        ...-e bzr+file://...@1#egg=version_pkg\n        ...' ) _check_output ( result . stdout , expected ) result = script . pip ( 'freeze' , '-f' , ( '%s/#egg=django-wikiapp' % checkout_path ) , expect_stderr = True ) expected = textwrap . dedent ( ( '        -f %(repo)s/#egg=django-wikiapp\n        ...-e bzr+file://...@...#egg=version_pkg\n        ...' % { 'repo' : checkout_path } ) ) _check_output ( result . stdout , expected )
test freezing a bazaar clone .