def test_get_idxs_to_balance_class_count_other_not_highest(self):
        
        bal = Balancer(np.copy(self.l))
        counts = bal.get_class_count(other_clname=CLNAME_OTHER)
        assert_in(CLNAME_OTHER, counts.keys())
        
        assert_equals(counts[0], 10)
        assert_equals(counts[1], 50)
        assert_equals(counts[CLNAME_OTHER], 40)
        tolerance_order = 1
        idxs = bal.get_idxs_to_balance_class_count(counts.values())
        assert_almost_equal(np.count_nonzero(np.logical_and(idxs >= 0,
                                                            idxs < 10)
                                             ),
                            10+(50-10), tolerance_order)
        assert_equals(np.count_nonzero(np.logical_and(idxs >= 10,
                                                      idxs < 60)
                                       ),
                      50, 1)
        assert_almost_equal(np.count_nonzero(idxs >= 60),
                            40+(50-40), tolerance_order)
dataset/ETHPy150Open kashefy/nideep/nideep/datasets/test_balance.py/TestBalancerBalanceIdxs.test_get_idxs_to_balance_class_count_other_not_highest/original