def test_partition_to_lists():
    '\n    Assert that partition_to_lists splits an iterable into two lists according to a condition\n    '
    nums = [1, 2, 1, 3, 1, 4, 0, None, None]
    (not_ones, ones) = partition_to_lists(nums, (lambda n: (n == 1)))
    assert (not_ones == [2, 3, 4, 0, None, None])
    assert (ones == [1, 1, 1])
    (falsey, truthy) = partition_to_lists(nums)
    assert (falsey == [0, None, None])
    assert (truthy == [1, 2, 1, 3, 1, 4])
Assert that partition_to_lists splits an iterable into two lists according to a condition
def test_partition_to_lists():
    '\n    \n    '
    nums = [1, 2, 1, 3, 1, 4, 0, None, None]
    (not_ones, ones) = partition_to_lists(nums, (lambda n: (n == 1)))
    assert (not_ones == [2, 3, 4, 0, None, None])
    assert (ones == [1, 1, 1])
    (falsey, truthy) = partition_to_lists(nums)
    assert (falsey == [0, None, None])
    assert (truthy == [1, 2, 1, 3, 1, 4])