summaryrefslogtreecommitdiff
path: root/bgproc_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'bgproc_tests.py')
-rw-r--r--bgproc_tests.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/bgproc_tests.py b/bgproc_tests.py
index 74f1ff1..5915321 100644
--- a/bgproc_tests.py
+++ b/bgproc_tests.py
@@ -32,23 +32,14 @@ class BackgroundProcessingTests(unittest.TestCase):
del requests[:]
self.bg = bgproc.BackgroundProcessing(callback)
- def test_no_pending_requests_initially(self):
- self.assertEqual(self.bg.pending_requests, 0)
-
def test_wait_for_results_returns_false_initially(self):
self.assertEqual(self.bg.wait_for_results(), False)
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)
-
def test_processes_stuff(self):
self.bg.enqueue_request(0)
self.assertEqual(self.bg.wait_for_results(), True)
self.assertEqual(list(self.bg), [1])
self.assertEqual(list(self.bg), [])
- self.assertEqual(self.bg.pending_requests, 0)
-