~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_content_filters.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2008, 2009, 2010, 2012, 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
237
237
        self.addCleanup(source.unlock)
238
238
 
239
239
        expected_canonical_form = 'Foo Txt\nend string\n'
240
 
        self.assertEquals(source.get_file(txt_fileid, filtered=True).read(),
 
240
        self.assertEqual(source.get_file(txt_fileid, filtered=True).read(),
241
241
            expected_canonical_form)
242
 
        self.assertEquals(source.get_file(txt_fileid, filtered=False).read(),
 
242
        self.assertEqual(source.get_file(txt_fileid, filtered=False).read(),
243
243
            'Foo Txt')
244
244
 
245
245
        # results are: kind, size, executable, sha1_or_link_target
246
246
        result = source.path_content_summary('file1.txt')
247
247
 
248
 
        self.assertEquals(result,
 
248
        self.assertEqual(result,
249
249
            ('file', None, False, None))
250
250
 
251
251
        # we could give back the length of the canonical form, but in general