示例#1
0
def test_is_downstream_string():
    output = platform.is_downstream(11, "test")
    assert output == True
示例#2
0
def test_is_downstream_no_args():
    with pytest.raises(TypeError):
        output = platform.is_downstream()
示例#3
0
def test_is_downstream_sixth_value():
    output = platform.is_downstream(.09, 4294967293)
    assert output == False
示例#4
0
def test_is_downstream_wrong_right_value():
    output = platform.is_downstream(24, -65)
    assert output == True
示例#5
0
def test_is_downstream_fifth_value():
    output = platform.is_downstream(-345, 65533)
    assert output == False
示例#6
0
def test_is_downstream_fourth_value():
    output = platform.is_downstream(68, 4)
    assert output == False
示例#7
0
def test_is_downstream_third_value():
    output = platform.is_downstream("test", 3)
    assert output == False
示例#8
0
def test_is_downstream_second_value():
    output = platform.is_downstream(34, 2)
    assert output == False
示例#9
0
def test_is_downstream_first_value():
    output = platform.is_downstream(7, 1)
    assert output == False