示例#1
0
def test_case5():
    sort_direction = json.load(open("case5.json", "r"))
    result = sort(sort_direction)
    assert result == []
示例#2
0
def test_case1():
    fixture = json.load(open("fixture/case1.json", "r"))
    sort_direction = json.load(open("case1.json", "r"))
    result = sort(sort_direction)
    assert fixture == result
示例#3
0
def test_case4():
    result = sort(None)
    assert result == "Ordering Exception"