@skipIf(not six.PY2, 'test applies only to python 2')
    def test_is_loopback(self):
        with patch.object(salt.ext.ipaddress.IPv4Address, 'is_loopback',
                          return_value=True):
            self.assertTrue(network.is_loopback('127.0.0.1'))
        with patch.object(salt.ext.ipaddress.IPv6Address, 'is_loopback',
                          return_value=True):
            self.assertTrue(network.is_loopback('::1'))
Manager should be a JWTCredentialsManager
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/network_test.py/NetworkTestCase.test_is_loopback--crossover with--dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/jwt_authentication_bottle_plugin.py/JWTAuthenticationBottlePlugin.__init__