def test_get_idxs_to_balance_class_count_other_highest(self):
        
        self.l[10:60, 1] = 0
        self.l[10:30, 1] = 1
        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], 20)
        assert_equals(counts[CLNAME_OTHER], 70)
        assert_equals(counts[CLNAME_OTHER], np.max(counts.values()),
                      "this test requires class count for %s to be highest!")
        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+(70-10), tolerance_order)
        assert_almost_equal(np.count_nonzero(np.logical_and(idxs >= 10,
                                                            idxs < 30)
                                             ),
                            20+(70-20), tolerance_order)
        assert_equals(np.count_nonzero(idxs >= 30),
                      70, tolerance_order)
dataset/ETHPy150Open kashefy/nideep/nideep/datasets/test_balance.py/TestBalancerBalanceIdxs.test_get_idxs_to_balance_class_count_other_highest/original