~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2016-02-01 16:50:54 UTC
  • mto: (6614.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: v.ladeuil+lp@free.fr-20160201165054-ihgm2jt16ire1sye
Fix assert_ being deprecated by using assertTrue.

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
313
313
        inp = StringIO(_working_inventory_v4)
314
314
        inv = xml4.serializer_v4.read_inventory(inp)
315
315
        self.assertEqual(len(inv), 4)
316
 
        self.assert_(inv.has_id('bar-20050901064931-73b4b1138abc9cd2'))
 
316
        self.assertTrue(inv.has_id('bar-20050901064931-73b4b1138abc9cd2'))
317
317
 
318
318
    def test_unpack_revision(self):
319
319
        """Test unpacking a canned revision v4"""
327
327
        eq(len(rev.parent_ids), 1)
328
328
        eq(rev.parent_ids[0],
329
329
           "mbp@sourcefrog.net-20050905063503-43948f59fa127d92")
330
 
 
331