~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/test_pull.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-04-07 07:52:50 UTC
  • mfrom: (3340.1.1 208418-1.4)
  • Revision ID: pqm@pqm.ubuntu.com-20080407075250-phs53xnslo8boaeo
Return the correct knit serialisation method in _StreamAccess.
        (Andrew Bennetts, Martin Pool, Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
 
18
18
from bzrlib import (
35
35
        cmd = builtins.cmd_pull()
36
36
        # We don't care about the ouput but 'outf' should be defined
37
37
        cmd.outf = tests.StringIOWrapper()
38
 
        cmd.run_direct(self.get_url('branch1'), directory='branch2')
 
38
        cmd.run(self.get_url('branch1'), directory='branch2')
39
39
        self.assertEquals(1, len(self.connections))
40
40
 
41
41
    def test_pull_with_bound_branch(self):
53
53
        pull = builtins.cmd_pull()
54
54
        # We don't care about the ouput but 'outf' should be defined
55
55
        pull.outf = tests.StringIOWrapper()
56
 
        pull.run_direct(self.get_url('remote'), directory='local')
 
56
        pull.run(self.get_url('remote'), directory='local')
57
57
        self.assertEquals(1, len(self.connections))
58
58