示例#1
0
def test_tracking_on_404_request():
    """Checks that the request tracking works on requests which raise exceptions"""
    start_count = baseriotapi.get_requests_count()
    try:
        baseriotapi.get_champion(int_test_handler.non_existent_champion_id)
    except:
        pass
    int_test_handler.test_result(baseriotapi.get_requests_count() == (start_count[0], start_count[1] + 1))
示例#2
0
def test_tracking_on_404_request():
    """Checks that the request tracking works on requests which raise exceptions"""
    start_count = baseriotapi.get_requests_count()
    try:
        baseriotapi.get_champion(int_test_handler.non_existent_champion_id)
    except:
        pass
    int_test_handler.test_result(
        baseriotapi.get_requests_count() == (start_count[0],
                                             start_count[1] + 1))
示例#3
0
def test_champion():
    int_test_handler.test_result(baseriotapi.get_champion(int_test_handler.champion_id))