diff --git a/openstackclient/tests/functional/identity/v3/test_project.py b/openstackclient/tests/functional/identity/v3/test_project.py
index 96d41c3a14..27cf448130 100644
--- a/openstackclient/tests/functional/identity/v3/test_project.py
+++ b/openstackclient/tests/functional/identity/v3/test_project.py
@@ -79,7 +79,6 @@ class ProjectTests(common.IdentityTests):
             '--disable '
             '--property k0=v0 '
             '%(name)s' % {'new_name': new_project_name,
-                          'domain': self.domain_name,
                           'name': project_name})
         self.assertEqual(0, len(raw_output))
         # check project details
diff --git a/openstackclient/tests/unit/network/v2/fakes.py b/openstackclient/tests/unit/network/v2/fakes.py
index 2b88986a27..cef0a11c91 100644
--- a/openstackclient/tests/unit/network/v2/fakes.py
+++ b/openstackclient/tests/unit/network/v2/fakes.py
@@ -1833,7 +1833,7 @@ class FakeFloatingIPPortForwarding(object):
         """
         attrs = attrs or {}
         floatingip_id = (
-            attrs.get('floatingip_id') or'floating-ip-id-' + uuid.uuid4().hex
+            attrs.get('floatingip_id') or 'floating-ip-id-' + uuid.uuid4().hex
         )
         # Set default attributes.
         port_forwarding_attrs = {