def test_run_merge_move_on_dup_comps_succeeds_with_random_choice(self):
    self.MakeModelWithDuplicatedComps()
    mergeFlags = dict(doPrecompEntropy=True, doPrecompMergeEntropy=True)
    LP = self.dupModel.calc_local_params(self.Data)
    SS = self.dupModel.get_global_suff_stats(self.Data, LP, **mergeFlags)
    nTrial = 100
    nSuccess = 0
    PRNG = np.random.RandomState(0)
    for trial in range(nTrial):
      newModel, newSS, newEv, MoveInfo = MergeMove.run_merge_move(self.dupModel, self.Data, SS, mergename='random', randstate=PRNG)
      if MoveInfo['didAccept']:
        print MoveInfo['msg']
        nSuccess += 1
    assert nSuccess > 0
    rate = float(nSuccess)/float(nTrial)
    print "Expected rate: .1428"
    print "Measured rate: %.3f" % (rate)
    assert rate > 0.1
    assert rate < 0.2
Render a page explaining that claim links are no longer valid.
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py/TestMergeHDP.test_run_merge_move_on_dup_comps_succeeds_with_random_choice--crossover with--dataset/ETHPy150Open hypothesis/h/h/accounts/views.py/claim_account_legacy