summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthew.hodgins <matthew.hodgins@calxeda.com>2013-10-15 09:35:25 -0500
committermatthew.hodgins <matthew.hodgins@calxeda.com>2013-10-15 09:35:25 -0500
commit87e004da5471c84f48310f7ecdd78e574d95a6ab (patch)
tree37ec7914bc3389b3f2448949d8bc8bdad0b8608b
parentd11c20d6eb6bdfb8c788731a1576ffa2721a884e (diff)
downloadcxmanage-87e004da5471c84f48310f7ecdd78e574d95a6ab.tar.gz
AIT-371 adding sel to dummynode for unit testing purposes
-rw-r--r--cxmanage_test/fabric_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cxmanage_test/fabric_test.py b/cxmanage_test/fabric_test.py
index 3be19f2..d2a6e28 100644
--- a/cxmanage_test/fabric_test.py
+++ b/cxmanage_test/fabric_test.py
@@ -451,8 +451,14 @@ class DummyNode(object):
self.power_state = False
self.ip_address = ip_address
self.tftp = tftp
+ self.sel = []
self.bmc = make_bmc(DummyBMC, hostname=ip_address, username=username,
password=password, verbose=False)
+
+ def get_sel(self):
+ """Simulate get_sel()"""
+ self.executed.append('get_sel')
+ return self.sel
def get_power(self):
"""Simulate get_power(). """