def test_split_bypass_b(self):
     q_newssites2_b, q_bypass2_b = qh.split_bypass(self.q_newssites2,
                                                   'bng_name')
     self.assertEqual(q_newssites2_b.qsize(),
                      self.result2['total'] - self.result2['bng_name'])
     self.assertEqual(q_bypass2_b.qsize(), self.result2['bng_name'])
 def test_split_bypass_g(self):
     q_newssites2_g, q_bypass2_g = qh.split_bypass(self.q_newssites2,
                                                   'ggl_name')
     self.assertEqual(q_newssites2_g.qsize(),
                      self.result2['total'] - self.result2['ggl_name'])
     self.assertEqual(q_bypass2_g.qsize(), self.result2['ggl_name'])
 def test_split_bypass_t(self):
     q_newssites2_t, q_bypass_t = qh.split_bypass(self.q_newssites2,
                                                  'tempreaders')
     self.assertEqual(q_newssites2_t.qsize(),
                      self.result2['total'] - self.result2['tempreaders'])
     self.assertEqual(q_bypass_t.qsize(), self.result2['tempreaders'])
 def test_split_bypass_r(self):
     q_newssites2_r, q_bypass2_r = qh.split_bypass(self.q_newssites2,
                                                   'readers')
     self.assertEqual(q_newssites2_r.qsize(),
                      self.result2['total'] - self.result2['readers'])
     self.assertEqual(q_bypass2_r.qsize(), self.result2['readers'])
 def test_split_bypass_c(self):
     q_newssites2_c, q_bypass2_c = qh.split_bypass(self.q_newssites2,
                                                   'country')
     self.assertEqual(q_newssites2_c.qsize(),
                      self.result2['total'] - self.result2['country'])
     self.assertEqual(q_bypass2_c.qsize(), self.result2['country'])