Exemplo n.º 1
0
def test_assert_stable_fail(options):
    src = dst = get_content("full")

    with pytest.raises(StableError):
        core.assert_stable(src, dst, options=options)
Exemplo n.º 2
0
def test_assert_stable(valid_contents, options):
    for content in valid_contents():
        formatted_content = core.format_file_contents(content, options=options)

        core.assert_stable(content, formatted_content, options=options)