~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_filter_tree.py

  • Committer: Vincent Ladeuil
  • Date: 2016-02-01 18:09:18 UTC
  • mfrom: (6614.1.3 assert)
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: v.ladeuil+lp@free.fr-20160201180918-jqtq8ol6gdbbbtpv
Fix deprecated assertions to unblock release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2011 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
43
43
 
44
44
    def test_get_file_text(self):
45
45
        self.make_tree()
46
 
        self.assertEquals(
 
46
        self.assertEqual(
47
47
            self.underlying_tree.get_file_text('hello-id'),
48
48
            'hello world')
49
 
        self.assertEquals(
 
49
        self.assertEqual(
50
50
            self.filter_tree.get_file_text('hello-id'),
51
51
            'HELLO WORLD')
52
52
 
55
55
        self.make_tree()
56
56
        export.export(self.filter_tree, "out.tgz")
57
57
        ball = tarfile.open("out.tgz", "r:gz")
58
 
        self.assertEquals(
 
58
        self.assertEqual(
59
59
            'HELLO WORLD',
60
60
            ball.extractfile('out/hello').read())
61
61
 
63
63
        self.make_tree()
64
64
        export.export(self.filter_tree, 'out.zip')
65
65
        zipf = zipfile.ZipFile('out.zip', 'r')
66
 
        self.assertEquals(
 
66
        self.assertEqual(
67
67
            'HELLO WORLD',
68
68
            zipf.read('out/hello'))