Fix digitalocean plugin tests for Python 3 (#4821)

assertItemsEqual() doesn't exist in Python 3.x. Travis didn't fail because of some nose errors (so not all tests were run).
This commit is contained in:
Felix Yan
2017-06-12 07:41:35 -07:00
committed by Brad Warren
parent 498f8ad75c
commit 6d74a0d3ce
2 changed files with 4 additions and 2 deletions
@@ -5,6 +5,7 @@ import unittest
import digitalocean
import mock
import six
from certbot import errors
from certbot.plugins import dns_test_common
@@ -133,8 +134,8 @@ class DigitalOceanClientTest(unittest.TestCase):
correct_record_mock.destroy.assert_called()
self.assertItemsEqual(first_record_mock.destroy.call_args_list, [])
self.assertItemsEqual(last_record_mock.destroy.call_args_list, [])
six.assertCountEqual(self, first_record_mock.destroy.call_args_list, [])
six.assertCountEqual(self, last_record_mock.destroy.call_args_list, [])
def test_del_txt_record_error_finding_domain(self):
self.manager.get_all_domains.side_effect = API_ERROR
+1
View File
@@ -15,6 +15,7 @@ install_requires = [
# For pkg_resources. >=1.0 so pip resolves it to a version cryptography
# will tolerate; see #2599:
'setuptools>=1.0',
'six',
'zope.interface',
]