Esempio n. 1
0
def test_quota():
    client = VideoAPI('api_key')
    client.allowed_parts = {'test_key': 10, 'test_key2': 4, 'test_key3': 6}
    assert client.calculate_quota(('test_key2', 'test_key3')) == 10
def test_quota():
    client = VideoAPI('api_key')
    client.allowed_parts = {'test_key': 10, 'test_key2': 4, 'test_key3': 6}
    assert client.calculate_quota(('test_key2', 'test_key3')) == 10