示例#1
0
def test_caught_speed_90_false():
    assert (caught_speeding(90, False)) == 2
示例#2
0
def test_caught_speed_65_false():
    assert (caught_speeding(65, False)) == 1
示例#3
0
def test_caught_speed_40_false():
    assert (caught_speeding(40, False)) == 0
示例#4
0
def test_caught_speed_40_true():
    assert (caught_speeding(40, True)) == 0
示例#5
0
def test_caught_speed_75_true():
    assert (caught_speeding(75, True)) == 1
示例#6
0
def test_caught_speed_70_false():
    assert (caught_speeding(70, False)) == 1
示例#7
0
def test_caught_speed_85_true():
    assert (caught_speeding(85, True)) == 1
示例#8
0
def test_caught_speed_85_false():
    assert (caught_speeding(85, False)) == 2
示例#9
0
def test_caught_speed_65_true():
    assert (caught_speeding(65, True)) == 0