def test_container_empty_css_(): expected = '.. container:: \n\n foo' result = container('foo', '') assert result == expected
def test_container_null_css_(): expected = '.. container:: \n\n foo' result = container('foo') assert result == expected
def test_container_null_value_expected_exception(): with pytest.raises(TypeError): container(None, 'css_class')
def test_container_empty_string_expected_exception(): with pytest.raises(TypeError): container('', 'css_class')
def test_container(): expected = '.. container:: css_class\n\n foo bar' result = container('foo bar', 'css_class') assert result == expected