]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-11788] create a bare class for testing strict attributes 304/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 28 May 2015 14:01:20 +0000 (10:01 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 28 May 2015 14:01:20 +0000 (10:01 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph_deploy/tests/util.py

index 88af892f49644ca6c17f3a62a772dc03b2ecfb92..2513de637708e7762fa7e5c9dd9c5836d9cbb8a0 100644 (file)
@@ -18,4 +18,11 @@ def generate_ips(start_ip, end_ip):
     return ip_range
 
 
-
+class Empty(object):
+    """
+    A bare class, with explicit behavior for key/value items to be set at
+    instantiation.
+    """
+    def __init__(self, **kw):
+        for k, v in kw.items():
+            setattr(self, k, v)