from copy import deepcopy
import unittest

from hstrat import hstrat


class TestStratumRetentionPredicateStochastic(unittest.TestCase):

    # tests can run independently
    _multiprocess_can_split_ = True

    def test_equality(self):
        assert (
            hstrat.StratumRetentionPredicateStochastic()
            == hstrat.StratumRetentionPredicateStochastic()
        )

        original = hstrat.StratumRetentionPredicateStochastic()
        copy = deepcopy(original)
        assert original == copy


if __name__ == '__main__':
    unittest.main()
