summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-04-01 17:04:35 -0400
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-04-01 17:04:35 -0400
commit4095aa4caf8021a6b8f44c2c4ca3b76a9c26a91f (patch)
tree76763383e435c6e932d0cab9a7a4115c6eb1f0ff /tests
parentd867cd1bc3cc0bd83d3e6727375f7f7fe689e379 (diff)
new variable at NodeDirMonitor -- `num_nodes'
`num_nodes' a value that represents the number of node directories. modified: combox/events.py modified: tests/events_test.py
Diffstat (limited to 'tests')
-rw-r--r--tests/events_test.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/events_test.py b/tests/events_test.py
index d754d44..bef6423 100644
--- a/tests/events_test.py
+++ b/tests/events_test.py
@@ -228,6 +228,15 @@ class TestEvents(object):
assert not silo.stale(self.lorem_ipsum)
+ def test_NDM_numnodes(self):
+ """Tests whether the NodeDirMonitor's num_nodes variable has the
+ right value.
+
+ """
+ nmonitor = NodeDirMonitor(self.config, self.silo_lock)
+ assert_equal(2, nmonitor.num_nodes)
+
+
def test_NDM(self):
"""
Tests the NodeDirMonitor class.