summaryrefslogtreecommitdiff
path: root/tests/thread_pool_test.py
diff options
context:
space:
mode:
authorJosh Blum2013-05-11 16:20:08 -0700
committerJosh Blum2013-05-11 16:20:08 -0700
commit4e210ade63d800b1a8671999f19019abd3c2ae03 (patch)
treeb23f026eb0ba161ebf8ae59087f5c51031946bec /tests/thread_pool_test.py
parent476e5e7f8c949251436646dfd155cdd4430c37f2 (diff)
downloadsandhi-4e210ade63d800b1a8671999f19019abd3c2ae03.tar.gz
sandhi-4e210ade63d800b1a8671999f19019abd3c2ae03.tar.bz2
sandhi-4e210ade63d800b1a8671999f19019abd3c2ae03.zip
gras: created new test_thread_priority api call
Diffstat (limited to 'tests/thread_pool_test.py')
-rw-r--r--tests/thread_pool_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/thread_pool_test.py b/tests/thread_pool_test.py
index 2c9dcad..0f8b513 100644
--- a/tests/thread_pool_test.py
+++ b/tests/thread_pool_test.py
@@ -19,5 +19,9 @@ class ThreadPoolTest(unittest.TestCase):
tp = gras.ThreadPool(c)
tp.set_active()
+ def test_thread_priority(self):
+ #here we assume prio 0.0 (default) can always be set
+ self.assertTrue(gras.ThreadPool.test_thread_priority(0.0))
+
if __name__ == '__main__':
unittest.main()