Example #1
0
 def test_get_stats_for_queue_all(self):
     stats = get_stats_for_queue()
     self.assertIsInstance(stats, dict)
     self.assertEqual(set(stats.keys()), set(self.queues))
     self.assertEqual(stats['beta'], Counter(self.beta_queue_statuses))
     self.assertEqual(stats['gamma'], Counter(self.gamma_queue_statuses))
Example #2
0
 def test_get_stats_for_queue_one(self):
     stats = get_stats_for_queue(['alpha'])
     self.assertEqual(type({}), type(stats))
     self.assertIn('alpha', stats)
     self.assertEqual(stats['alpha'], Counter(self.alpha_queue_statuses))