From 675238bc117a77a3f30785f085846b70c593bcee Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 25 May 2011 17:18:54 +0100 Subject: Implement processing, simplistic, synchronous. This is just to get the API working enough to get a feeling if it works well. --- bgproc_tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bgproc_tests.py') 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]) + -- cgit v1.2.1