def test_subsample_counts_with_replacement_equal_n(self):
        # test when n == counts.sum()
        a = np.array([0, 0, 3, 4, 2, 1])
        actual = set()
        for i in range(1000):
            obs = subsample_counts(a, 10, replace=True)
            self.assertEqual(obs.sum(), 10)
            actual.add(tuple(obs))
        self.assertTrue(1 > len(actual))
dataset/ETHPy150Open biocore/scikit-bio/skbio/stats/tests/test_subsample.py/SubsampleCountsTests.test_subsample_counts_with_replacement_equal_n/swapped operands of `>`