diff options
Diffstat (limited to 'bgproc_tests.py')
-rw-r--r-- | bgproc_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgproc_tests.py b/bgproc_tests.py index 17bc4fc..9709636 100644 --- a/bgproc_tests.py +++ b/bgproc_tests.py @@ -41,3 +41,7 @@ class BackgroundProcessingTests(unittest.TestCase): def test_iterates_to_empty_list_initially(self): self.assertEqual(list(self.bg), []) + def test_enqueue_increments_pending_requests(self): + self.bg.enqueue_request(0) + self.assertEqual(self.bg.pending_requests, 1) + |