Skip to content

Commit

Permalink
Update test_pool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zandercymatics committed Oct 19, 2023
1 parent a744b94 commit b8dfe0b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/epplibwrapper/tests/test_pool.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
from pathlib import Path
from unittest.mock import MagicMock, patch
from dateutil.tz import tzlocal # type: ignore
from dateutil.tz import tzlocal # type: ignore
from django.test import TestCase
from epplibwrapper.client import EPPLibWrapper
from epplibwrapper.errors import RegistryError
Expand Down Expand Up @@ -182,6 +182,8 @@ def fake_client(self):

# Try to send a command out - should fail
with self.assertRaises(RegistryError):
expected_message = "InfoDomain failed to execute due to a connection error."
result = registry.send(commands.InfoDomain(name="test.gov"), cleaned=True)
self.assertEqual(result, expected_message)
expected = "InfoDomain failed to execute due to a connection error."
result = registry.send(
commands.InfoDomain(name="test.gov"), cleaned=True
)
self.assertEqual(result, expected)

0 comments on commit b8dfe0b

Please sign in to comment.