Example #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)
Example #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)
Example #3
0
def test_get_action_valid(action):
    assert _get_action(fake_request(action=action)) == action
Example #4
0
def test_get_action_valid(action):
    assert _get_action(fake_request(action=action)) == action