diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-03-13 12:03:20 -0400 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-03-13 12:03:20 -0400 |
commit | 1f91f748cb2ff193011aaab714442298a231aa10 (patch) | |
tree | a17f5adcaafc18e5fdf5a3f5f954ca34e4141015 /tests/events_test.py | |
parent | 27acc86045b457bd800b5203d97218c0197bfeea (diff) |
Added `shardp' method to combox.events.NodeDirMonitor + test for it.
modified: combox/events.py
modified: tests/events_test.py
Diffstat (limited to 'tests/events_test.py')
-rw-r--r-- | tests/events_test.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/events_test.py b/tests/events_test.py index bdb1c1a..1212d69 100644 --- a/tests/events_test.py +++ b/tests/events_test.py @@ -314,6 +314,16 @@ class TestEvents(object): observer.join() + def test_NDM_shardp(self): + """Testing shardp method in NodeDirMonitor class""" + shard = 'some.shard0' + not_shard = 'some.extension' + ndm = NodeDirMonitor(self.config) + + assert_equal(True, ndm.shardp(shard)) + assert_equal(False, ndm.shardp(not_shard)) + + def teardown(self): """Cleans up things after each test in this class""" purge_nodedirs(self.config) |