class KeystoneProxyTestCase(unittest.TestCase): def setUp(self): mc = services.mc_mock.Client(["localhost:11211"], 1) mc.set("test_token", {"test_cloud": {"username": "******"}}, None) self.auth = KeystoneProxy("test_cloud", "test_token", mc, eucarc_path="tukey_middleware/tests/data/%s") def test_host(self): assert self.auth.host() == "127.0.0.3" def test_path(self): assert self.auth.path() == "/services/Eucalyptus"