예제 #1
0
def test_doubles():
    with open('tests/data/doubles.py') as f:
        lines = f.readlines()
        expected = [{'col': 24,
                     'line': 1,
                     'message': 'Q000 Strings should use single quotes.'}]
        assert list(fsq.get_double_quotes_errors(lines)) == expected
예제 #2
0
def test_wrapped():
    with open('tests/data/wrapped.py') as f:
        lines = f.readlines()
        assert list(fsq.get_double_quotes_errors(lines)) == []