def METHOD_NAME(self):
    try:
        c1 = omero.client(host="foo")
        c1.createSession()
        c1.closeSession()
    except Exception:
        print("foo failed appropriately")
    c2 = omero.client(host=self.host, port=self.port)
    try:
        user = self.new_user()
        c2.createSession(user.omeName.val, user.omeName.val)
        c2.closeSession()
    finally:
        c2.__del__()