def METHOD_NAME(self):
    """Test to ensure generated restrictions from double and
    rational-valued profiles are equal
    """
    assert self.restriction == self.profile_rational.restriction()
    assert (
        self.tree_restriction == self.tree_profile_rational.restriction()
    )