def lint(self, path, source, filename, syntax_only): return lint(source)
def assert_names(source): source, expected = get_source_and_expected_result(source) result = lint(source) assert set(result) == set(expected)