summaryrefslogtreecommitdiff
path: root/bgproc_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'bgproc_tests.py')
-rw-r--r--bgproc_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bgproc_tests.py b/bgproc_tests.py
index 9709636..885a223 100644
--- a/bgproc_tests.py
+++ b/bgproc_tests.py
@@ -45,3 +45,8 @@ class BackgroundProcessingTests(unittest.TestCase):
self.bg.enqueue_request(0)
self.assertEqual(self.bg.pending_requests, 1)
+ def test_processes_stuff(self):
+ self.bg.enqueue_request(0)
+ self.assertEqual(self.bg.wait_for_results(), True)
+ self.assertEqual(list(self.bg), [1])
+