示例#1
0
def test_container_empty_css_():
    expected = '.. container:: \n\n foo'
    result = container('foo', '')
    assert result == expected
示例#2
0
def test_container_null_css_():
    expected = '.. container:: \n\n foo'
    result = container('foo')
    assert result == expected
示例#3
0
def test_container_null_value_expected_exception():
    with pytest.raises(TypeError):
        container(None, 'css_class')
示例#4
0
def test_container_empty_string_expected_exception():
    with pytest.raises(TypeError):
        container('', 'css_class')
示例#5
0
def test_container():
    expected = '.. container:: css_class\n\n foo bar'
    result = container('foo bar', 'css_class')
    assert result == expected