def test_multiple_workers(self): status = parse(document_multiple_workers) # Only one active worker self.assertEqual(len(status.active_workers), 8) # 14 workers in total self.assertEqual(len(status.workers), 73)
def setUp(self): # We do most tests against single worker doc self.status = parse(document_single_worker)