~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_config.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2014-03-30 17:59:29 UTC
  • mto: This revision was merged to the branch mainline in revision 6592.
  • Revision ID: a.starr.b@gmail.com-20140330175929-rd97jstcbau2j1gy
Use LooseVersion from distutils to check Cython version in order to handle non-integers in the version string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2010, 2011, 2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2010 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
32
32
 
33
33
    def test_config_all(self):
34
34
        out, err = self.run_bzr(['config'])
35
 
        self.assertEqual('', out)
36
 
        self.assertEqual('', err)
 
35
        self.assertEquals('', out)
 
36
        self.assertEquals('', err)
37
37
 
38
38
    def test_remove_unknown_option(self):
39
39
        self.run_bzr_error(['The "file" configuration option does not exist',],
393
393
        clone.get_config_stack().set('test', 'clone')
394
394
        out, err = self.run_bzr(['config', '-d', ':parent', 'test'],
395
395
                                working_dir='clone')
396
 
        self.assertEqual('base\n', out)
 
396
        self.assertEquals('base\n', out)