def test_discontiguous_with_contiguity_flips_is_false(): discontiguous_partition = MockDiscontiguousPartition() discontiguous_partition.flips = discontiguous_partition.test_flips assert not contiguous(discontiguous_partition) assert not single_flip_contiguous(discontiguous_partition) assert not fast_connected(discontiguous_partition)
def test_contiguous_with_contiguity_flips_is_true(): contiguous_partition = MockContiguousPartition() contiguous_partition.flips = contiguous_partition.test_flips assert contiguous(contiguous_partition) assert single_flip_contiguous(contiguous_partition) assert fast_connected(contiguous_partition)