Exemplo n.º 1
0
def test_should_return_list_without_items():
    result = exclude(["bosse", "daniel", "edvard", "bosse", "bosse"], "bosse")

    length = len(result)  # should be 2

    for name in result:
        assert_true(name != "bosse")

    assert_equal(length, 2)
def test_should_return_list_without_items():
    result = exclude(["bosse", "daniel", "edvard", "bosse", "bosse"], "bosse")

    length = len(result) # should be 2


    for name in result:
        assert_true(name != "bosse")

    assert_equal(length, 2)
def test_takes_a_list_and_object_as_argument():
    exclude(1337, 45)
    exclude()
    exclude("kjkj")
    exclude([1, 2, 3])
def test_should_return_list(1):
    result = exclude([1, 2, 3], 4)

    # result should  be a list
    assert_true(isinstance(result, list))
Exemplo n.º 5
0
def test_should_return_list():
    result = exclude([1, 2, 3], 4)

    # result should  be a list
    assert_true(isinstance(result, list))
Exemplo n.º 6
0
def test_takes_a_list_and_object_as_argument():
    exclude(1337, 45)
    exclude()
    exclude("kjkj")
    exclude([1, 2, 3])