summaryrefslogtreecommitdiff
path: root/test/engine/test_parseconnect.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/engine/test_parseconnect.py')
-rw-r--r--test/engine/test_parseconnect.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/test/engine/test_parseconnect.py b/test/engine/test_parseconnect.py
index b7e890517..1277425c1 100644
--- a/test/engine/test_parseconnect.py
+++ b/test/engine/test_parseconnect.py
@@ -148,11 +148,20 @@ class URLTest(fixtures.TestBase):
)
def test_comparison(self):
- components = ('drivername', 'username', 'password', 'host',
- 'database', 'query', 'port')
+ components = (
+ "drivername",
+ "username",
+ "password",
+ "host",
+ "database",
+ "query",
+ "port",
+ )
- common_url = "dbtype://username:password" \
- "@[2001:da8:2004:1000:202:116:160:90]:80/database?foo=bar"
+ common_url = (
+ "dbtype://username:password"
+ "@[2001:da8:2004:1000:202:116:160:90]:80/database?foo=bar"
+ )
other_url = "dbtype://uname:pwd@host/"
url1 = url.make_url(common_url)
@@ -165,7 +174,7 @@ class URLTest(fixtures.TestBase):
is_false(url1 == url3)
for curr_component in components:
- setattr(url2, curr_component, 'new_changed_value')
+ setattr(url2, curr_component, "new_changed_value")
is_true(url1 != url2)
is_false(url1 == url2)
setattr(url2, curr_component, getattr(url1, curr_component))