def test_addCleanupCalledInReverseOrder(self):
        self.test.addCleanup(self.test.append, "foo")
        self.test.addCleanup(self.test.append, 'bar')
        self.test.run(self.result)
        self.assertEqual(['setUp', 'runTest', 'bar', 'foo', 'tearDown'],
                         self.test.log)
Return a randomly selected sample from this probability distribution.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_tests.py/TestAddCleanup.test_addCleanupCalledInReverseOrder--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/probability.py/ProbDistI.generate