コード例 #1
0
def test_basic_post():
    post = Post(label='1', role='Representative', organization_id='fake_org')
    assert '1' in str(post)
    post.validate()
コード例 #2
0
def test_basic_post():
    post = Post(label='1', role='Representative', organization_id='fake_org')
    assert '1' in str(post)
    post.validate()
コード例 #3
0
def test_basic_invalid_post():
    post = Post(label=1, role='Representative', organization_id='fake_org')
    with pytest.raises(ValueError):
        post.validate()
コード例 #4
0
def test_basic_invalid_post():
    post = Post(label=1, role='Representative', organization_id='fake_org')
    with pytest.raises(ValueError):
        post.validate()
コード例 #5
0
ファイル: test_popolo.py プロジェクト: paultag/pupa
def test_basic_post():
    post = Post('1', 'Representative', 'fake_org')
    assert '1' in str(post)
    post.validate()
コード例 #6
0
ファイル: test_popolo.py プロジェクト: paultag/pupa
def test_basic_invalid_post():
    post = Post(1, 'Representative', 'fake_org')
    with pytest.raises(ValueError):
        post.validate()
コード例 #7
0
def test_basic_post():
    post = Post('1', 'Representative', 'fake_org')
    assert '1' in str(post)
    post.validate()
コード例 #8
0
def test_basic_invalid_post():
    post = Post(1, 'Representative', 'fake_org')
    with pytest.raises(ValueError):
        post.validate()