def test_basic_post(): post = Post(label='1', role='Representative', organization_id='fake_org') assert '1' in str(post) post.validate()
def test_basic_invalid_post(): post = Post(label=1, role='Representative', organization_id='fake_org') with pytest.raises(ValueError): post.validate()
def test_basic_post(): post = Post('1', 'Representative', 'fake_org') assert '1' in str(post) post.validate()
def test_basic_invalid_post(): post = Post(1, 'Representative', 'fake_org') with pytest.raises(ValueError): post.validate()