~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2010-02-25 06:17:27 UTC
  • mfrom: (5055 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5057.
  • Revision ID: mbp@sourcefrog.net-20100225061727-4sd9lt0qmdc6087t
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
22
22
import os
23
23
 
24
24
from bzrlib import tests
 
25
from bzrlib.transport import memory
25
26
 
26
27
 
27
28
class TestCat(tests.TestCaseWithTransport):
195
196
        self.assertEqual('contents of README\n', out)
196
197
 
197
198
    def test_cat_nonexistent_branch(self):
198
 
        self.vfs_transport_factory = tests.MemoryServer
 
199
        self.vfs_transport_factory = memory.MemoryServer
199
200
        self.run_bzr_error(['^bzr: ERROR: Not a branch'],
200
201
                           ['cat', self.get_url()])