예제 #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()