Пример #1
0
def test_get_action_invalid(action, fake_error):
    with pytest.raises(fake_error) as ex:
        _get_action(fake_request(action=action))
    assert ex.value.args[0] == 'Invalid action: "{}"'.format(action)
Пример #2
0
def test_get_action_invalid(action, fake_error):
    with pytest.raises(fake_error) as ex:
        _get_action(fake_request(action=action))
    assert ex.value.args[0] == 'Invalid action: "{}"'.format(action)
Пример #3
0
def test_get_action_valid(action):
    assert _get_action(fake_request(action=action)) == action
Пример #4
0
def test_get_action_valid(action):
    assert _get_action(fake_request(action=action)) == action