From 7f9236a63f106aef86a948ac984de64103b377f3 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 28 May 2015 10:01:20 -0400 Subject: [PATCH] [RM-11788] create a bare class for testing strict attributes Signed-off-by: Alfredo Deza --- ceph_deploy/tests/util.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ceph_deploy/tests/util.py b/ceph_deploy/tests/util.py index 88af892..2513de6 100644 --- a/ceph_deploy/tests/util.py +++ b/ceph_deploy/tests/util.py @@ -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) -- 2.47.3