(self)
| 42 | importlib.reload(queues) |
| 43 | |
| 44 | def test_create_destroy(self): |
| 45 | qid = _queues.create(2, REPLACE, -1) |
| 46 | _queues.destroy(qid) |
| 47 | self.assertEqual(get_num_queues(), 0) |
| 48 | with self.assertRaises(queues.QueueNotFoundError): |
| 49 | _queues.get(qid) |
| 50 | with self.assertRaises(queues.QueueNotFoundError): |
| 51 | _queues.destroy(qid) |
| 52 | |
| 53 | def test_not_destroyed(self): |
| 54 | # It should have cleaned up any remaining queues. |
nothing calls this directly
no test coverage detected