コード例 #1
0
ファイル: vhost_mail_test.py プロジェクト: karenytu/ocfweb
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
ファイル: vhost_mail_test.py プロジェクト: tmochida/ocfweb
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
ファイル: vhost_mail_test.py プロジェクト: karenytu/ocfweb
def test_get_action_valid(action):
    assert _get_action(fake_request(action=action)) == action
コード例 #4
0
ファイル: vhost_mail_test.py プロジェクト: tmochida/ocfweb
def test_get_action_valid(action):
    assert _get_action(fake_request(action=action)) == action