<reponame>skrat/martinez<filename>tests/integration_tests/contours_tests/test_copy.py<gh_stars>1-10
import copy
from typing import Tuple

from hypothesis import given

from tests.bind_tests.hints import BoundContour
from tests.integration_tests.utils import are_bound_ported_contours_equal
from tests.port_tests.hints import PortedContour
from . import strategies


@given(strategies.contours_pairs)
def test_shallow(contours_pair: Tuple[BoundContour, PortedContour]) -> None:
    bound, ported = contours_pair

    assert are_bound_ported_contours_equal(copy.copy(bound), copy.copy(ported))


@given(strategies.contours_pairs)
def test_deep(contours_pair: Tuple[BoundContour, PortedContour]) -> None:
    bound, ported = contours_pair

    assert are_bound_ported_contours_equal(copy.deepcopy(bound),
                                           copy.deepcopy(ported))

import copy
from typing import Tuple

from hypothesis import given

from tests.bind_tests.hints import BoundContour
from tests.integration_tests.utils import are_bound_ported_contours_equal
from tests.port_tests.hints import PortedContour
from . import strategies


@given(strategies.contours_pairs)
def test_shallow(contours_pair: Tuple[BoundContour, PortedContour]) -> None:
    bound, ported = contours_pair

    assert are_bound_ported_contours_equal(copy.copy(bound), copy.copy(ported))


@given(strategies.contours_pairs)
def test_deep(contours_pair: Tuple[BoundContour, PortedContour]) -> None:
    bound, ported = contours_pair

    assert are_bound_ported_contours_equal(copy.deepcopy(bound),
                                           copy.deepcopy(ported))