~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/weave_fmt/test_repository.py

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2011, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
20
20
 
21
21
"""
22
22
 
 
23
from __future__ import absolute_import
 
24
 
23
25
from cStringIO import StringIO
24
26
from stat import S_ISDIR
25
27
import sys
311
313
        inp = StringIO(_working_inventory_v4)
312
314
        inv = xml4.serializer_v4.read_inventory(inp)
313
315
        self.assertEqual(len(inv), 4)
314
 
        self.assert_(inv.has_id('bar-20050901064931-73b4b1138abc9cd2'))
 
316
        self.assertTrue(inv.has_id('bar-20050901064931-73b4b1138abc9cd2'))
315
317
 
316
318
    def test_unpack_revision(self):
317
319
        """Test unpacking a canned revision v4"""
325
327
        eq(len(rev.parent_ids), 1)
326
328
        eq(rev.parent_ids[0],
327
329
           "mbp@sourcefrog.net-20050905063503-43948f59fa127d92")
328
 
 
329