Exemplo n.º 1
0
def test_format_returns_nothing():
    """Verify Nothing.format returns None."""
    formatter = default.Nothing(options())
    error = style_guide.Error('code', 'file.py', 1, 1, 'text', '1')

    assert formatter.format(error) is None
Exemplo n.º 2
0
def test_show_source_returns_nothing():
    """Verify Nothing.show_source returns None."""
    formatter = default.Nothing(options())
    error = style_guide.Violation('code', 'file.py', 1, 1, 'text', '1')

    assert formatter.show_source(error) is None
Exemplo n.º 3
0
def test_show_source_returns_nothing():
    """Verify Nothing.show_source returns None."""
    formatter = default.Nothing(options())
    error = style_guide.Violation("code", "file.py", 1, 1, "text", "1")

    assert formatter.show_source(error) is None