def test_keystone_admin(self): self.useFixture(mockpatch.PatchObject(javelin, "OSClient")) javelin.OPTS = self.fake_object javelin.keystone_admin() javelin.OSClient.assert_called_once_with( self.fake_object.os_username, self.fake_object.os_password, self.fake_object.os_tenant_name)
def test_keystone_admin(self): self.useFixture(mockpatch.PatchObject(javelin, "OSClient")) javelin.OPTS = self.fake_object javelin.keystone_admin() javelin.OSClient.assert_called_once_with( self.fake_object.os_username, self.fake_object.os_password, self.fake_object.os_tenant_name )