prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Check Domain availability via epp-Testing
  ### Issue Description
  
  When adding the /availability endpoint we will need to send a CheckDomain request to epp to see if the domain is available. This epp function is already implemented in domain.py and is called available(). It just needs to be tested and updated if the test show any problem with the implementation
  
  ### AC
  
  - [x] unit tests added for available
  - [x] manually test via sandbox with OT&E to be sure that this is working as expected 
  - [x] update the implementation as needed or desired
  - [x] in your tests, ensure that this function can be called by just doing Domain.available() and not by having an instance of a domain
  
  ### Additional Context (optional)
  
  This must be tested by using Domain.available because the /availability endpoint (when implemented) will not have access to any particular domain object and this function needs to be able to be performed on its own.
  
  ### Issue Link
  blocks: #1015 
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `src/epplibwrapper/__init__.py`
  Content:
  ```
  1 import logging
  2 from types import SimpleNamespace
  3 
  4 try:
  5     from epplib import constants
  6 except ImportError:
  7     # allow epplibwrapper to load without epplib, for testing and development
  8     pass
  9 
  10 logger = logging.getLogger(__name__)
  11 
  12 NAMESPACE = SimpleNamespace(
  13     EPP="urn:ietf:params:xml:ns:epp-1.0",
  14     XSI="http://www.w3.org/2001/XMLSchema-instance",
  15     FRED="noop",
  16     NIC_CONTACT="urn:ietf:params:xml:ns:contact-1.0",
  17     NIC_DOMAIN="urn:ietf:params:xml:ns:domain-1.0",
  18     NIC_ENUMVAL="noop",
  19     NIC_EXTRA_ADDR="noop",
  20     NIC_HOST="urn:ietf:params:xml:ns:host-1.0",
  21     NIC_KEYSET="noop",
  22     NIC_NSSET="noop",
  23 )
  24 
  25 SCHEMA_LOCATION = SimpleNamespace(
  26     XSI="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd",
  27     FRED="noop fred-1.5.0.xsd",
  28     NIC_CONTACT="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd",
  29     NIC_DOMAIN="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd",
  30     NIC_ENUMVAL="noop enumval-1.2.0.xsd",
  31     NIC_EXTRA_ADDR="noop extra-addr-1.0.0.xsd",
  32     NIC_HOST="urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd",
  33     NIC_KEYSET="noop keyset-1.3.2.xsd",
  34     NIC_NSSET="noop nsset-1.2.2.xsd",
  35 )
  36 
  37 try:
  38     constants.NAMESPACE = NAMESPACE
  39     constants.SCHEMA_LOCATION = SCHEMA_LOCATION
  40 except NameError:
  41     pass
  42 
  43 # Attn: these imports should NOT be at the top of the file
  44 try:
  45     from .client import CLIENT, commands
  46     from .errors import RegistryError, ErrorCode
  47     from epplib.models import common
  48 except ImportError:
  49     pass
  50 
  51 __all__ = [
  52     "CLIENT",
  53     "commands",
  54     "common",
  55     "ErrorCode",
  56     "RegistryError",
  57 ]
  58
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/src/epplibwrapper/__init__.py b/src/epplibwrapper/__init__.py
  --- a/src/epplibwrapper/__init__.py
  +++ b/src/epplibwrapper/__init__.py
  @@ -45,6 +45,7 @@
       from .client import CLIENT, commands
       from .errors import RegistryError, ErrorCode
       from epplib.models import common
  +    from epplib import responses
   except ImportError:
       pass
   
  @@ -52,6 +53,7 @@
       "CLIENT",
       "commands",
       "common",
  +    "responses",
       "ErrorCode",
       "RegistryError",
   ]
  
verification_info: {"golden_diff": "diff --git a/src/epplibwrapper/__init__.py b/src/epplibwrapper/__init__.py\n--- a/src/epplibwrapper/__init__.py\n+++ b/src/epplibwrapper/__init__.py\n@@ -45,6 +45,7 @@\n     from .client import CLIENT, commands\n     from .errors import RegistryError, ErrorCode\n     from epplib.models import common\n+    from epplib import responses\n except ImportError:\n     pass\n \n@@ -52,6 +53,7 @@\n     \"CLIENT\",\n     \"commands\",\n     \"common\",\n+    \"responses\",\n     \"ErrorCode\",\n     \"RegistryError\",\n ]\n", "issue": "Check Domain availability via epp-Testing\n### Issue Description\r\n\r\nWhen adding the /availability endpoint we will need to send a CheckDomain request to epp to see if the domain is available. This epp function is already implemented in domain.py and is called available(). It just needs to be tested and updated if the test show any problem with the implementation\r\n\r\n### AC\r\n\r\n- [x] unit tests added for available\r\n- [x] manually test via sandbox with OT&E to be sure that this is working as expected \r\n- [x] update the implementation as needed or desired\r\n- [x] in your tests, ensure that this function can be called by just doing Domain.available() and not by having an instance of a domain\r\n\r\n### Additional Context (optional)\r\n\r\nThis must be tested by using Domain.available because the /availability endpoint (when implemented) will not have access to any particular domain object and this function needs to be able to be performed on its own.\r\n\r\n### Issue Link\r\nblocks: #1015 \n", "before_files": [{"content": "import logging\nfrom types import SimpleNamespace\n\ntry:\n    from epplib import constants\nexcept ImportError:\n    # allow epplibwrapper to load without epplib, for testing and development\n    pass\n\nlogger = logging.getLogger(__name__)\n\nNAMESPACE = SimpleNamespace(\n    EPP=\"urn:ietf:params:xml:ns:epp-1.0\",\n    XSI=\"http://www.w3.org/2001/XMLSchema-instance\",\n    FRED=\"noop\",\n    NIC_CONTACT=\"urn:ietf:params:xml:ns:contact-1.0\",\n    NIC_DOMAIN=\"urn:ietf:params:xml:ns:domain-1.0\",\n    NIC_ENUMVAL=\"noop\",\n    NIC_EXTRA_ADDR=\"noop\",\n    NIC_HOST=\"urn:ietf:params:xml:ns:host-1.0\",\n    NIC_KEYSET=\"noop\",\n    NIC_NSSET=\"noop\",\n)\n\nSCHEMA_LOCATION = SimpleNamespace(\n    XSI=\"urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd\",\n    FRED=\"noop fred-1.5.0.xsd\",\n    NIC_CONTACT=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\",\n    NIC_DOMAIN=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\",\n    NIC_ENUMVAL=\"noop enumval-1.2.0.xsd\",\n    NIC_EXTRA_ADDR=\"noop extra-addr-1.0.0.xsd\",\n    NIC_HOST=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\",\n    NIC_KEYSET=\"noop keyset-1.3.2.xsd\",\n    NIC_NSSET=\"noop nsset-1.2.2.xsd\",\n)\n\ntry:\n    constants.NAMESPACE = NAMESPACE\n    constants.SCHEMA_LOCATION = SCHEMA_LOCATION\nexcept NameError:\n    pass\n\n# Attn: these imports should NOT be at the top of the file\ntry:\n    from .client import CLIENT, commands\n    from .errors import RegistryError, ErrorCode\n    from epplib.models import common\nexcept ImportError:\n    pass\n\n__all__ = [\n    \"CLIENT\",\n    \"commands\",\n    \"common\",\n    \"ErrorCode\",\n    \"RegistryError\",\n]\n", "path": "src/epplibwrapper/__init__.py"}], "after_files": [{"content": "import logging\nfrom types import SimpleNamespace\n\ntry:\n    from epplib import constants\nexcept ImportError:\n    # allow epplibwrapper to load without epplib, for testing and development\n    pass\n\nlogger = logging.getLogger(__name__)\n\nNAMESPACE = SimpleNamespace(\n    EPP=\"urn:ietf:params:xml:ns:epp-1.0\",\n    XSI=\"http://www.w3.org/2001/XMLSchema-instance\",\n    FRED=\"noop\",\n    NIC_CONTACT=\"urn:ietf:params:xml:ns:contact-1.0\",\n    NIC_DOMAIN=\"urn:ietf:params:xml:ns:domain-1.0\",\n    NIC_ENUMVAL=\"noop\",\n    NIC_EXTRA_ADDR=\"noop\",\n    NIC_HOST=\"urn:ietf:params:xml:ns:host-1.0\",\n    NIC_KEYSET=\"noop\",\n    NIC_NSSET=\"noop\",\n)\n\nSCHEMA_LOCATION = SimpleNamespace(\n    XSI=\"urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd\",\n    FRED=\"noop fred-1.5.0.xsd\",\n    NIC_CONTACT=\"urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd\",\n    NIC_DOMAIN=\"urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd\",\n    NIC_ENUMVAL=\"noop enumval-1.2.0.xsd\",\n    NIC_EXTRA_ADDR=\"noop extra-addr-1.0.0.xsd\",\n    NIC_HOST=\"urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd\",\n    NIC_KEYSET=\"noop keyset-1.3.2.xsd\",\n    NIC_NSSET=\"noop nsset-1.2.2.xsd\",\n)\n\ntry:\n    constants.NAMESPACE = NAMESPACE\n    constants.SCHEMA_LOCATION = SCHEMA_LOCATION\nexcept NameError:\n    pass\n\n# Attn: these imports should NOT be at the top of the file\ntry:\n    from .client import CLIENT, commands\n    from .errors import RegistryError, ErrorCode\n    from epplib.models import common\n    from epplib import responses\nexcept ImportError:\n    pass\n\n__all__ = [\n    \"CLIENT\",\n    \"commands\",\n    \"common\",\n    \"responses\",\n    \"ErrorCode\",\n    \"RegistryError\",\n]\n", "path": "src/epplibwrapper/__init__.py"}]}