mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:24:35 +02:00
[#5155] - replaces instances of isinstance(x, str) with isinstance(x, six.string_types)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""Tests for certbot.plugins.null."""
|
||||
import unittest
|
||||
import six
|
||||
|
||||
import mock
|
||||
|
||||
@@ -12,7 +13,7 @@ class InstallerTest(unittest.TestCase):
|
||||
self.installer = Installer(config=mock.MagicMock(), name="null")
|
||||
|
||||
def test_it(self):
|
||||
self.assertTrue(isinstance(self.installer.more_info(), str))
|
||||
self.assertTrue(isinstance(self.installer.more_info(), six.string_types))
|
||||
self.assertEqual([], self.installer.get_all_names())
|
||||
self.assertEqual([], self.installer.supported_enhancements())
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class AuthenticatorTest(unittest.TestCase):
|
||||
|
||||
def test_more_info(self):
|
||||
more_info = self.auth.more_info()
|
||||
self.assertTrue(isinstance(more_info, str))
|
||||
self.assertTrue(isinstance(more_info, six.string_types))
|
||||
self.assertTrue(self.path in more_info)
|
||||
|
||||
def test_add_parser_arguments(self):
|
||||
|
||||
Reference in New Issue
Block a user