test_geo.py
def testing_rivers_by_station_number():
    """ Test to check can increase the number of a value of a dictionary """
    test_dict = {}
    test_list = [1, 4, 5, 45, 85, 88, 93, 99, 100]

    for number in test_list:
        if number % 2 == 0:
            if "even" in test_dict.keys():
                test_dict["even"] += 1
            else:
                test_dict["even"] = 1
        else:
            if "odd" in test_dict.keys():
                test_dict["odd"] += 1
            else:
                test_dict["odd"] = 1

    assert list(test_dict.keys()) == ["odd", "even"]
    assert list(test_dict.values()) == [6, 3]
 Test to check can increase the number of a value of a dictionary 
Test to check can increase the number of a value of a dictionary
Test to check can increase the number of a value of a dictionary
def testing_rivers_by_station_number():
    test_dict = {}
    test_list = [1, 4, 5, 45, 85, 88, 93, 99, 100]
    for number in test_list:
        if number % 2 == 0:
            if "even" in test_dict.keys():
                test_dict["even"] += 1
            else:
                test_dict["even"] = 1
        else:
            if "odd" in test_dict.keys():
                test_dict["odd"] += 1
            else:
                test_dict["odd"] = 1
    assert list(test_dict.keys()) == ["odd", "even"]
    assert list(test_dict.values()) == [6, 3]
def testing_rivers_by_station_number ( ) : test_dict = { } test_list = [ 1 , 4 , 5 , 45 , 85 , 88 , 93 , 99 , 100 ] for number in test_list : if number % 2 == 0 : if "even" in test_dict . keys ( ) : test_dict [ "even" ] += 1 else : test_dict [ "even" ] = 1 else : if "odd" in test_dict . keys ( ) : test_dict [ "odd" ] += 1 else : test_dict [ "odd" ] = 1 assert list ( test_dict . keys ( ) ) == [ "odd" , "even" ] assert list ( test_dict . values ( ) ) == [ 6 , 3 ]
Test to check can increase the number of a value of a dictionary
Test to check can increase the number of a value of a dictionary
""" Test to check can increase the number of a value of a dictionary """