summaryrefslogtreecommitdiff
path: root/tests/messages
diff options
context:
space:
mode:
authorAshley Whetter <ashley@awhetter.co.uk>2019-06-14 22:28:42 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2019-06-20 10:02:14 +0200
commit33b8185a455c1686d038258697bb93005f2441c2 (patch)
tree4a50ccac775c009436e45803129e428ed694065f /tests/messages
parent7081d91f30728653000bdfc59ea85a3395f96418 (diff)
downloadpylint-git-33b8185a455c1686d038258697bb93005f2441c2.tar.gz
Stopped installing tests with package
Diffstat (limited to 'tests/messages')
-rw-r--r--tests/messages/builtin_module.txt1
-rw-r--r--tests/messages/func_3k_removed_stuff_py_30.txt2
-rw-r--r--tests/messages/func_bad_cont_dictcomp_py27.txt6
-rw-r--r--tests/messages/func_bug113231.txt2
-rw-r--r--tests/messages/func_disable_linebased.txt2
-rw-r--r--tests/messages/func_disable_linebased_py30.txt2
-rw-r--r--tests/messages/func_dotted_ancestor.txt1
-rw-r--r--tests/messages/func_e0012.txt1
-rw-r--r--tests/messages/func_e0204.txt3
-rw-r--r--tests/messages/func_e12xx.txt6
-rw-r--r--tests/messages/func_e13xx.txt13
-rw-r--r--tests/messages/func_e13xx_py30.txt11
-rw-r--r--tests/messages/func_excess_escapes.txt9
-rw-r--r--tests/messages/func_first_arg.txt9
-rw-r--r--tests/messages/func_i0011.txt3
-rw-r--r--tests/messages/func_i0012.txt1
-rw-r--r--tests/messages/func_i0013.txt1
-rw-r--r--tests/messages/func_i0014.txt2
-rw-r--r--tests/messages/func_i0020.txt3
-rw-r--r--tests/messages/func_i0022.txt21
-rw-r--r--tests/messages/func_logging_not_lazy_with_logger.txt4
-rw-r--r--tests/messages/func_loopvar_in_dict_comp_py27.txt1
-rw-r--r--tests/messages/func_module___dict__.txt1
-rw-r--r--tests/messages/func_nameerror_on_string_substitution.txt2
-rw-r--r--tests/messages/func_no_dummy_redefined.txt2
-rw-r--r--tests/messages/func_nonregr___file___global.txt2
-rw-r--r--tests/messages/func_raw_escapes.txt3
-rw-r--r--tests/messages/func_return_yield_mix_py_33.txt2
-rw-r--r--tests/messages/func_toolonglines_py30.txt4
-rw-r--r--tests/messages/func_typecheck_callfunc_assigment.txt3
-rw-r--r--tests/messages/func_typecheck_getattr_py30.txt9
-rw-r--r--tests/messages/func_typecheck_non_callable_call.txt8
-rw-r--r--tests/messages/func_unicode_literal_py26.txt0
-rw-r--r--tests/messages/func_unicode_literal_py274.txt1
-rw-r--r--tests/messages/func_unused_import_py30.txt1
-rw-r--r--tests/messages/func_use_for_or_listcomp_var_py29.txt3
-rw-r--r--tests/messages/func_use_for_or_listcomp_var_py30.txt3
-rw-r--r--tests/messages/func_variables_unused_name_from_wilcard_import.txt4
-rw-r--r--tests/messages/func_w0122_py_30.txt5
-rw-r--r--tests/messages/func_w0233.txt6
-rw-r--r--tests/messages/func_w0312.txt2
-rw-r--r--tests/messages/func_w0332_py_30.txt1
-rw-r--r--tests/messages/func_w0401.txt3
-rw-r--r--tests/messages/func_w0401_disabled.txt2
-rw-r--r--tests/messages/func_w0401_disabled_in_func.txt2
-rw-r--r--tests/messages/func_w0401_package.txt2
-rw-r--r--tests/messages/func_w0404.txt5
-rw-r--r--tests/messages/func_w0405.txt4
-rw-r--r--tests/messages/func_w0406.txt1
-rw-r--r--tests/messages/func_w0611.txt1
-rw-r--r--tests/messages/func_w0612.txt6
-rw-r--r--tests/messages/func_w0613.txt5
-rw-r--r--tests/messages/func_w0622.txt2
-rw-r--r--tests/messages/func_w0623.txt11
-rw-r--r--tests/messages/func_w0623_py30.txt2
-rw-r--r--tests/messages/func_w0623_py_30.txt12
-rw-r--r--tests/messages/func_w0801.txt11
-rw-r--r--tests/messages/func_with_without_as_py25.txt3
58 files changed, 238 insertions, 0 deletions
diff --git a/tests/messages/builtin_module.txt b/tests/messages/builtin_module.txt
new file mode 100644
index 000000000..2616c0e20
--- /dev/null
+++ b/tests/messages/builtin_module.txt
@@ -0,0 +1 @@
+F: 1: ignored builtin module sys
diff --git a/tests/messages/func_3k_removed_stuff_py_30.txt b/tests/messages/func_3k_removed_stuff_py_30.txt
new file mode 100644
index 000000000..9920f1b64
--- /dev/null
+++ b/tests/messages/func_3k_removed_stuff_py_30.txt
@@ -0,0 +1,2 @@
+E: 12:function: Instance of 'unicode' has no 'looower' member
+W: 4: Relative import 'func_w0401', should be 'input.func_w0401'
diff --git a/tests/messages/func_bad_cont_dictcomp_py27.txt b/tests/messages/func_bad_cont_dictcomp_py27.txt
new file mode 100644
index 000000000..51bde771e
--- /dev/null
+++ b/tests/messages/func_bad_cont_dictcomp_py27.txt
@@ -0,0 +1,6 @@
+C: 35: Wrong continued indentation (add 2 spaces).
+ for x in range(3)} # [bad-continuation]
+ ^ |
+C: 38: Wrong continued indentation (remove 4 spaces).
+ for x in range(3)} # [bad-continuation]
+ | ^
diff --git a/tests/messages/func_bug113231.txt b/tests/messages/func_bug113231.txt
new file mode 100644
index 000000000..a9d3f7ef3
--- /dev/null
+++ b/tests/messages/func_bug113231.txt
@@ -0,0 +1,2 @@
+W: 20: Specify string format arguments as logging function parameters
+W: 21: Specify string format arguments as logging function parameters
diff --git a/tests/messages/func_disable_linebased.txt b/tests/messages/func_disable_linebased.txt
new file mode 100644
index 000000000..06e391d4f
--- /dev/null
+++ b/tests/messages/func_disable_linebased.txt
@@ -0,0 +1,2 @@
+C: 1: Line too long (127/100)
+C: 14: Line too long (114/100)
diff --git a/tests/messages/func_disable_linebased_py30.txt b/tests/messages/func_disable_linebased_py30.txt
new file mode 100644
index 000000000..06e391d4f
--- /dev/null
+++ b/tests/messages/func_disable_linebased_py30.txt
@@ -0,0 +1,2 @@
+C: 1: Line too long (127/100)
+C: 14: Line too long (114/100)
diff --git a/tests/messages/func_dotted_ancestor.txt b/tests/messages/func_dotted_ancestor.txt
new file mode 100644
index 000000000..6e2c6fa5e
--- /dev/null
+++ b/tests/messages/func_dotted_ancestor.txt
@@ -0,0 +1 @@
+R: 8:Aaaa: Too few public methods (0/2)
diff --git a/tests/messages/func_e0012.txt b/tests/messages/func_e0012.txt
new file mode 100644
index 000000000..a6d1b698c
--- /dev/null
+++ b/tests/messages/func_e0012.txt
@@ -0,0 +1 @@
+E: 1: Bad option value 'W04044'
diff --git a/tests/messages/func_e0204.txt b/tests/messages/func_e0204.txt
new file mode 100644
index 000000000..40a5928b5
--- /dev/null
+++ b/tests/messages/func_e0204.txt
@@ -0,0 +1,3 @@
+E: 11:Abcd.__init__: Method should have "self" as first argument
+E: 15:Abcd.abdc: Method should have "self" as first argument
+
diff --git a/tests/messages/func_e12xx.txt b/tests/messages/func_e12xx.txt
new file mode 100644
index 000000000..92640d256
--- /dev/null
+++ b/tests/messages/func_e12xx.txt
@@ -0,0 +1,6 @@
+E: 14:pprint: Too many arguments for logging format string
+E: 15:pprint: Too many arguments for logging format string
+E: 16:pprint: Logging format string ends in middle of conversion specifier
+E: 17:pprint: Not enough arguments for logging format string
+E: 18:pprint: Unsupported logging format character 'y' (0x79) at index 3
+E: 19:pprint: Too many arguments for logging format string
diff --git a/tests/messages/func_e13xx.txt b/tests/messages/func_e13xx.txt
new file mode 100644
index 000000000..f2d0d364e
--- /dev/null
+++ b/tests/messages/func_e13xx.txt
@@ -0,0 +1,13 @@
+E: 11:pprint: Not enough arguments for format string
+E: 12:pprint: Too many arguments for format string
+E: 13:pprint: Mixing named and unnamed conversion specifiers in format string
+E: 14:pprint: Missing key 'PARG_2' in format string dictionary
+E: 16:pprint: Missing key 'PARG_2' in format string dictionary
+E: 17:pprint: Expected mapping for format string, not Tuple
+E: 18:pprint: Expected mapping for format string, not List
+E: 19:pprint: Unsupported format character 'z' (0x7a) at index 2
+E: 20:pprint: Format string ends in middle of conversion specifier
+E: 21:pprint: Unsupported format character 'a' (0x61) at index 12
+W: 15:pprint: Unused key 'PARG_3' in format string dictionary
+W: 16:pprint: Format string dictionary key should be a string, not 2
+
diff --git a/tests/messages/func_e13xx_py30.txt b/tests/messages/func_e13xx_py30.txt
new file mode 100644
index 000000000..7ac9fb180
--- /dev/null
+++ b/tests/messages/func_e13xx_py30.txt
@@ -0,0 +1,11 @@
+E: 11:pprint: Not enough arguments for format string
+E: 12:pprint: Too many arguments for format string
+E: 13:pprint: Mixing named and unnamed conversion specifiers in format string
+E: 14:pprint: Missing key 'PARG_2' in format string dictionary
+E: 16:pprint: Missing key 'PARG_2' in format string dictionary
+E: 17:pprint: Expected mapping for format string, not Tuple
+E: 18:pprint: Expected mapping for format string, not List
+E: 19:pprint: Unsupported format character 'z' (0x7a) at index 2
+E: 20:pprint: Format string ends in middle of conversion specifier
+W: 15:pprint: Unused key 'PARG_3' in format string dictionary
+W: 16:pprint: Format string dictionary key should be a string, not 2 \ No newline at end of file
diff --git a/tests/messages/func_excess_escapes.txt b/tests/messages/func_excess_escapes.txt
new file mode 100644
index 000000000..2f07722cf
--- /dev/null
+++ b/tests/messages/func_excess_escapes.txt
@@ -0,0 +1,9 @@
+W: 7: Anomalous backslash in string: '\['. String constant might be missing an r prefix.
+W: 7: Anomalous backslash in string: '\]'. String constant might be missing an r prefix.
+W: 8: Anomalous backslash in string: '\/'. String constant might be missing an r prefix.
+W: 9: Anomalous backslash in string: '\`'. String constant might be missing an r prefix.
+W: 15: Anomalous backslash in string: '\o'. String constant might be missing an r prefix.
+W: 15: Anomalous backslash in string: '\o'. String constant might be missing an r prefix.
+W: 17: Anomalous backslash in string: '\8'. String constant might be missing an r prefix.
+W: 17: Anomalous backslash in string: '\9'. String constant might be missing an r prefix.
+W: 27: Anomalous backslash in string: '\P'. String constant might be missing an r prefix.
diff --git a/tests/messages/func_first_arg.txt b/tests/messages/func_first_arg.txt
new file mode 100644
index 000000000..8d932048a
--- /dev/null
+++ b/tests/messages/func_first_arg.txt
@@ -0,0 +1,9 @@
+C: 10:Obj.__new__: Class method __new__ should have 'cls' as first argument
+C: 18:Obj.class2: Class method class2 should have 'cls' as first argument
+C: 25:Meta.__new__: Metaclass class method __new__ should have 'cls' as first argument
+C: 32:Meta.method2: Metaclass method method2 should have 'cls' as first argument
+C: 40:Meta.class2: Metaclass class method class2 should have 'cls' as first argument
+R: 16:Obj: Consider using a decorator instead of calling classmethod
+R: 20:Obj: Consider using a decorator instead of calling classmethod
+R: 38:Meta: Consider using a decorator instead of calling classmethod
+R: 42:Meta: Consider using a decorator instead of calling classmethod
diff --git a/tests/messages/func_i0011.txt b/tests/messages/func_i0011.txt
new file mode 100644
index 000000000..66d4bfc68
--- /dev/null
+++ b/tests/messages/func_i0011.txt
@@ -0,0 +1,3 @@
+I: 1: Id 'W0404' is used to disable 'reimported' message emission
+I: 1: Locally disabling reimported (W0404)
+I: 1: Useless suppression of 'reimported'
diff --git a/tests/messages/func_i0012.txt b/tests/messages/func_i0012.txt
new file mode 100644
index 000000000..5ad4cd6c6
--- /dev/null
+++ b/tests/messages/func_i0012.txt
@@ -0,0 +1 @@
+I: 1: Id 'W0404' is used to enable 'reimported' message emission
diff --git a/tests/messages/func_i0013.txt b/tests/messages/func_i0013.txt
new file mode 100644
index 000000000..75d7afd60
--- /dev/null
+++ b/tests/messages/func_i0013.txt
@@ -0,0 +1 @@
+I: 1: Ignoring entire file
diff --git a/tests/messages/func_i0014.txt b/tests/messages/func_i0014.txt
new file mode 100644
index 000000000..c3b521d5a
--- /dev/null
+++ b/tests/messages/func_i0014.txt
@@ -0,0 +1,2 @@
+I: 1: Ignoring entire file
+I: 1: Pragma "disable-all" is deprecated, use "skip-file" instead
diff --git a/tests/messages/func_i0020.txt b/tests/messages/func_i0020.txt
new file mode 100644
index 000000000..ddd1cb4a6
--- /dev/null
+++ b/tests/messages/func_i0020.txt
@@ -0,0 +1,3 @@
+I: 7: Id 'W0612' is used to disable 'unused-variable' message emission
+I: 7: Locally disabling unused-variable (W0612)
+I: 8: Suppressed 'unused-variable' (from line 7)
diff --git a/tests/messages/func_i0022.txt b/tests/messages/func_i0022.txt
new file mode 100644
index 000000000..28b7d71c1
--- /dev/null
+++ b/tests/messages/func_i0022.txt
@@ -0,0 +1,21 @@
+I: 5: Locally disabling invalid-name (C0103)
+I: 5: Suppressed 'invalid-name' (from line 5)
+I: 6: Locally disabling invalid-name (C0103)
+I: 6: Pragma "disable-msg" is deprecated, use "disable" instead
+I: 6: Suppressed 'invalid-name' (from line 6)
+I: 8: Locally disabling invalid-name (C0103)
+I: 9: Suppressed 'invalid-name' (from line 8)
+I: 12: Locally disabling invalid-name (C0103)
+I: 12: Pragma "disable-msg" is deprecated, use "disable" instead
+I: 13: Suppressed 'invalid-name' (from line 12)
+I: 14: Pragma "enable-msg" is deprecated, use "enable" instead
+I: 16: Id 'C0103' is used to disable 'invalid-name' message emission
+I: 16: Locally disabling invalid-name (C0103)
+I: 16: Pragma "disable-msg" is deprecated, use "disable" instead
+I: 17: Suppressed 'invalid-name' (from line 16)
+I: 18: Id 'C0103' is used to enable 'invalid-name' message emission
+I: 18: Pragma "enable-msg" is deprecated, use "enable" instead
+I: 20: Id 'C0103' is used to disable 'invalid-name' message emission
+I: 20: Locally disabling invalid-name (C0103)
+I: 21: Suppressed 'invalid-name' (from line 20)
+I: 22: Id 'C0103' is used to enable 'invalid-name' message emission
diff --git a/tests/messages/func_logging_not_lazy_with_logger.txt b/tests/messages/func_logging_not_lazy_with_logger.txt
new file mode 100644
index 000000000..04823cf33
--- /dev/null
+++ b/tests/messages/func_logging_not_lazy_with_logger.txt
@@ -0,0 +1,4 @@
+W: 8: Specify string format arguments as logging function parameters
+W: 9: Specify string format arguments as logging function parameters
+W: 11: Specify string format arguments as logging function parameters
+W: 13: Specify string format arguments as logging function parameters
diff --git a/tests/messages/func_loopvar_in_dict_comp_py27.txt b/tests/messages/func_loopvar_in_dict_comp_py27.txt
new file mode 100644
index 000000000..bc11121c4
--- /dev/null
+++ b/tests/messages/func_loopvar_in_dict_comp_py27.txt
@@ -0,0 +1 @@
+W: 8:bad_case.<lambda>: Cell variable x defined in loop
diff --git a/tests/messages/func_module___dict__.txt b/tests/messages/func_module___dict__.txt
new file mode 100644
index 000000000..416982434
--- /dev/null
+++ b/tests/messages/func_module___dict__.txt
@@ -0,0 +1 @@
+E: 5: Using variable '__dict__' before assignment
diff --git a/tests/messages/func_nameerror_on_string_substitution.txt b/tests/messages/func_nameerror_on_string_substitution.txt
new file mode 100644
index 000000000..aab21024b
--- /dev/null
+++ b/tests/messages/func_nameerror_on_string_substitution.txt
@@ -0,0 +1,2 @@
+E: 5: Using variable 'MSG' before assignment
+E: 8: Using variable 'MSG2' before assignment
diff --git a/tests/messages/func_no_dummy_redefined.txt b/tests/messages/func_no_dummy_redefined.txt
new file mode 100644
index 000000000..a7db92f55
--- /dev/null
+++ b/tests/messages/func_no_dummy_redefined.txt
@@ -0,0 +1,2 @@
+C: 7: Constant name "value" doesn't conform to UPPER_CASE naming style
+W: 12:clobbering: Redefining name 'value' from outer scope (line 7)
diff --git a/tests/messages/func_nonregr___file___global.txt b/tests/messages/func_nonregr___file___global.txt
new file mode 100644
index 000000000..c0d7340f9
--- /dev/null
+++ b/tests/messages/func_nonregr___file___global.txt
@@ -0,0 +1,2 @@
+W: 5:func: Redefining built-in '__file__'
+W: 5:func: Using the global statement
diff --git a/tests/messages/func_raw_escapes.txt b/tests/messages/func_raw_escapes.txt
new file mode 100644
index 000000000..991fba7dd
--- /dev/null
+++ b/tests/messages/func_raw_escapes.txt
@@ -0,0 +1,3 @@
+W: 5: Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix.
+W: 6: Anomalous Unicode escape in byte string: '\U'. String constant might be missing an r or u prefix.
+W: 7: Anomalous Unicode escape in byte string: '\N'. String constant might be missing an r or u prefix.
diff --git a/tests/messages/func_return_yield_mix_py_33.txt b/tests/messages/func_return_yield_mix_py_33.txt
new file mode 100644
index 000000000..d81ce5cf4
--- /dev/null
+++ b/tests/messages/func_return_yield_mix_py_33.txt
@@ -0,0 +1,2 @@
+E: 6:somegen: Return with argument inside generator
+E: 15:moregen: Return with argument inside generator
diff --git a/tests/messages/func_toolonglines_py30.txt b/tests/messages/func_toolonglines_py30.txt
new file mode 100644
index 000000000..cd594f5fa
--- /dev/null
+++ b/tests/messages/func_toolonglines_py30.txt
@@ -0,0 +1,4 @@
+C: 1: Line too long (101/100)
+C: 2: Line too long (104/100)
+C: 17: Line too long (102/100)
+C: 25: Line too long (105/100)
diff --git a/tests/messages/func_typecheck_callfunc_assigment.txt b/tests/messages/func_typecheck_callfunc_assigment.txt
new file mode 100644
index 000000000..d1257ca17
--- /dev/null
+++ b/tests/messages/func_typecheck_callfunc_assigment.txt
@@ -0,0 +1,3 @@
+E: 18: Assigning result of a function call, where the function has no return
+E: 26: Assigning result of a function call, where the function returns None
+E: 33: Assigning result of a function call, where the function returns None
diff --git a/tests/messages/func_typecheck_getattr_py30.txt b/tests/messages/func_typecheck_getattr_py30.txt
new file mode 100644
index 000000000..b6bf150f6
--- /dev/null
+++ b/tests/messages/func_typecheck_getattr_py30.txt
@@ -0,0 +1,9 @@
+E: 25:Client.__init__: Class 'Provider' has no 'cattribute' member
+E: 35:Client.use_method: Instance of 'Provider' has no 'hophophop' member
+E: 40:Client.use_attr: Instance of 'Provider' has no 'attribute' member
+E: 52:Client.test_bt_types: Instance of 'list' has no 'apppend' member
+E: 54:Client.test_bt_types: Instance of 'dict' has no 'set' member
+E: 56:Client.test_bt_types: Instance of 'tuple' has no 'append' member
+E: 58:Client.test_bt_types: Instance of 'str' has no 'loower' member
+E: 62:Client.test_bt_types: Instance of 'int' has no 'whatever' member
+E: 66: Instance of 'int' has no 'lower' member (but some types could not be inferred)
diff --git a/tests/messages/func_typecheck_non_callable_call.txt b/tests/messages/func_typecheck_non_callable_call.txt
new file mode 100644
index 000000000..8baa237a3
--- /dev/null
+++ b/tests/messages/func_typecheck_non_callable_call.txt
@@ -0,0 +1,8 @@
+E: 10: __revision__ is not callable
+E: 29: INSTANCE is not callable
+E: 31: LIST is not callable
+E: 33: DICT is not callable
+E: 35: TUPLE is not callable
+E: 37: INT is not callable
+E: 72: PROP.test is not callable
+E: 73: PROP.custom is not callable \ No newline at end of file
diff --git a/tests/messages/func_unicode_literal_py26.txt b/tests/messages/func_unicode_literal_py26.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/messages/func_unicode_literal_py26.txt
diff --git a/tests/messages/func_unicode_literal_py274.txt b/tests/messages/func_unicode_literal_py274.txt
new file mode 100644
index 000000000..25efa9998
--- /dev/null
+++ b/tests/messages/func_unicode_literal_py274.txt
@@ -0,0 +1 @@
+W: 6: Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix.
diff --git a/tests/messages/func_unused_import_py30.txt b/tests/messages/func_unused_import_py30.txt
new file mode 100644
index 000000000..1868abc2d
--- /dev/null
+++ b/tests/messages/func_unused_import_py30.txt
@@ -0,0 +1 @@
+W: 8: Reimport 'ABCMeta' (imported line 7)
diff --git a/tests/messages/func_use_for_or_listcomp_var_py29.txt b/tests/messages/func_use_for_or_listcomp_var_py29.txt
new file mode 100644
index 000000000..14d61ad65
--- /dev/null
+++ b/tests/messages/func_use_for_or_listcomp_var_py29.txt
@@ -0,0 +1,3 @@
+W: 6: Using possibly undefined loop variable 'C'
+W: 15: Using possibly undefined loop variable 'var1'
+
diff --git a/tests/messages/func_use_for_or_listcomp_var_py30.txt b/tests/messages/func_use_for_or_listcomp_var_py30.txt
new file mode 100644
index 000000000..46d3430af
--- /dev/null
+++ b/tests/messages/func_use_for_or_listcomp_var_py30.txt
@@ -0,0 +1,3 @@
+E: 6: Using variable 'C' before assignment
+W: 15: Using possibly undefined loop variable 'var1'
+
diff --git a/tests/messages/func_variables_unused_name_from_wilcard_import.txt b/tests/messages/func_variables_unused_name_from_wilcard_import.txt
new file mode 100644
index 000000000..01c57af07
--- /dev/null
+++ b/tests/messages/func_variables_unused_name_from_wilcard_import.txt
@@ -0,0 +1,4 @@
+W: 3: Unused import NonRegr from wildcard import
+W: 3: Unused import os from wildcard import
+W: 3: Unused import sys from wildcard import
+W: 3: Wildcard import input.func_w0611
diff --git a/tests/messages/func_w0122_py_30.txt b/tests/messages/func_w0122_py_30.txt
new file mode 100644
index 000000000..d833076d5
--- /dev/null
+++ b/tests/messages/func_w0122_py_30.txt
@@ -0,0 +1,5 @@
+W: 5: Use of exec
+W: 6: Use of exec
+W: 8: Use of exec
+W: 12:func: Use of exec
+
diff --git a/tests/messages/func_w0233.txt b/tests/messages/func_w0233.txt
new file mode 100644
index 000000000..de4f0fba9
--- /dev/null
+++ b/tests/messages/func_w0233.txt
@@ -0,0 +1,6 @@
+E: 7: Unable to import 'nonexistant'
+E: 23:CCC: Module 'input.func_w0233' has no 'BBBB' member
+E: 28:CCC.__init__: Module 'input.func_w0233' has no 'BBBB' member
+E: 51:Super2.__init__: Super of 'Super2' has no '__woohoo__' member
+W: 15:AAAA.__init__: __init__ method from a non direct base class 'BBBBMixin' is called
+W: 49:Super2.__init__: __init__ method from base class 'dict' is not called
diff --git a/tests/messages/func_w0312.txt b/tests/messages/func_w0312.txt
new file mode 100644
index 000000000..917e8d0e2
--- /dev/null
+++ b/tests/messages/func_w0312.txt
@@ -0,0 +1,2 @@
+W: 10: Found indentation with tabs instead of spaces
+W: 11: Found indentation with tabs instead of spaces
diff --git a/tests/messages/func_w0332_py_30.txt b/tests/messages/func_w0332_py_30.txt
new file mode 100644
index 000000000..16f1d8024
--- /dev/null
+++ b/tests/messages/func_w0332_py_30.txt
@@ -0,0 +1 @@
+W: 4: Use of "l" as long integer identifier
diff --git a/tests/messages/func_w0401.txt b/tests/messages/func_w0401.txt
new file mode 100644
index 000000000..f6648f477
--- /dev/null
+++ b/tests/messages/func_w0401.txt
@@ -0,0 +1,3 @@
+R: 1: Cyclic import (input.func_w0401 -> input.w0401_cycle)
+W: 8: Using a conditional statement with a constant value
+W: 8: Using a conditional statement with a constant value
diff --git a/tests/messages/func_w0401_disabled.txt b/tests/messages/func_w0401_disabled.txt
new file mode 100644
index 000000000..b5a8db3d2
--- /dev/null
+++ b/tests/messages/func_w0401_disabled.txt
@@ -0,0 +1,2 @@
+W: 8: Using a conditional statement with a constant value
+W: 8: Using a conditional statement with a constant value
diff --git a/tests/messages/func_w0401_disabled_in_func.txt b/tests/messages/func_w0401_disabled_in_func.txt
new file mode 100644
index 000000000..b5ce4524d
--- /dev/null
+++ b/tests/messages/func_w0401_disabled_in_func.txt
@@ -0,0 +1,2 @@
+W: 8: Using a conditional statement with a constant value
+W: 10:func: Using a conditional statement with a constant value
diff --git a/tests/messages/func_w0401_package.txt b/tests/messages/func_w0401_package.txt
new file mode 100644
index 000000000..ca0512448
--- /dev/null
+++ b/tests/messages/func_w0401_package.txt
@@ -0,0 +1,2 @@
+R: 1: Cyclic import (input.func_w0401_package.all_the_things -> input.func_w0401_package.thing2)
+W: 8: Using a conditional statement with a constant value
diff --git a/tests/messages/func_w0404.txt b/tests/messages/func_w0404.txt
new file mode 100644
index 000000000..2cfc13736
--- /dev/null
+++ b/tests/messages/func_w0404.txt
@@ -0,0 +1,5 @@
+W: 7: Reimport 'ElementTree' (imported line 6)
+W: 10: Reimport 'email.encoders' (imported line 9)
+W: 12: Reimport 'sys' (imported line 4)
+W: 23:reimport: Redefining name 'sys' from outer scope (line 4)
+W: 23:reimport: Reimport 'sys' (imported line 4)
diff --git a/tests/messages/func_w0405.txt b/tests/messages/func_w0405.txt
new file mode 100644
index 000000000..072b15547
--- /dev/null
+++ b/tests/messages/func_w0405.txt
@@ -0,0 +1,4 @@
+W: 8: Reimport 'os' (imported line 6)
+W: 16: Reimport 'exists' (imported line 7)
+W: 21:func: Reimport 'os' (imported line 6)
+W: 23:func: Reimport 're' (imported line 9)
diff --git a/tests/messages/func_w0406.txt b/tests/messages/func_w0406.txt
new file mode 100644
index 000000000..f6bc14db2
--- /dev/null
+++ b/tests/messages/func_w0406.txt
@@ -0,0 +1 @@
+W: 4: Module import itself
diff --git a/tests/messages/func_w0611.txt b/tests/messages/func_w0611.txt
new file mode 100644
index 000000000..2be0d0a8d
--- /dev/null
+++ b/tests/messages/func_w0611.txt
@@ -0,0 +1 @@
+W: 7: Unused import os
diff --git a/tests/messages/func_w0612.txt b/tests/messages/func_w0612.txt
new file mode 100644
index 000000000..a6d8bdc29
--- /dev/null
+++ b/tests/messages/func_w0612.txt
@@ -0,0 +1,6 @@
+W: 9:function: Unused variable 'aaaa'
+W: 28:test_global: Using the global statement
+W: 34:test_global: Unused platform imported from sys
+W: 35:test_global: Unused version imported from sys as VERSION
+W: 36:test_global: Unused import this
+W: 37:test_global: Unused re imported as RE
diff --git a/tests/messages/func_w0613.txt b/tests/messages/func_w0613.txt
new file mode 100644
index 000000000..36cb38014
--- /dev/null
+++ b/tests/messages/func_w0613.txt
@@ -0,0 +1,5 @@
+W: 7:function: Unused argument 'arg'
+W: 14:AAAA.method: Unused argument 'arg'
+W: 21:AAAA.selected: Unused argument 'args'
+W: 21:AAAA.selected: Unused argument 'kwargs'
+W: 40:BBBB.__init__: Unused argument 'arg'
diff --git a/tests/messages/func_w0622.txt b/tests/messages/func_w0622.txt
new file mode 100644
index 000000000..719134726
--- /dev/null
+++ b/tests/messages/func_w0622.txt
@@ -0,0 +1,2 @@
+W: 8:function: Redefining built-in 'type'
+W: 11: Redefining built-in 'map'
diff --git a/tests/messages/func_w0623.txt b/tests/messages/func_w0623.txt
new file mode 100644
index 000000000..08fe8b571
--- /dev/null
+++ b/tests/messages/func_w0623.txt
@@ -0,0 +1,11 @@
+C: 28:some_function: Variable name "FOO" doesn't conform to 'variable-name-hint' template
+C: 41: Constant name "exc3" doesn't conform to 'constant-name-hint' template
+C: 55: Variable name "OOPS" doesn't conform to 'variable-name-hint' template
+W: 18:some_function: Redefining name 'RuntimeError' from object 'exceptions' in exception handler
+W: 20:some_function: Redefining name 'OSError' from builtins in exception handler
+W: 20:some_function: Unused variable 'OSError'
+W: 22:some_function: Redefining name 'MyError' from outer scope (line 7) in exception handler
+W: 22:some_function: Unused variable 'MyError'
+W: 45: Redefining name 'RuntimeError' from object 'exceptions' in exception handler
+W: 47: Redefining name 'OSError' from builtins in exception handler
+W: 49: Redefining name 'MyOtherError' from outer scope (line 36) in exception handler
diff --git a/tests/messages/func_w0623_py30.txt b/tests/messages/func_w0623_py30.txt
new file mode 100644
index 000000000..e5cc0f57e
--- /dev/null
+++ b/tests/messages/func_w0623_py30.txt
@@ -0,0 +1,2 @@
+W: 16:some_function: Redefining name 'some_function' from outer scope (line 11) in exception handler
+W: 16:some_function: Unused variable 'some_function'
diff --git a/tests/messages/func_w0623_py_30.txt b/tests/messages/func_w0623_py_30.txt
new file mode 100644
index 000000000..77329bb0f
--- /dev/null
+++ b/tests/messages/func_w0623_py_30.txt
@@ -0,0 +1,12 @@
+C: 28:some_function: Variable name "FOO" doesn't conform to 'variable-name-hint' template
+C: 41: Constant name "exc3" doesn't conform to 'constant-name-hint' template
+C: 57: Variable name "OOPS" doesn't conform to 'variable-name-hint' template
+W: 18:some_function: Redefining name 'RuntimeError' from object 'exceptions' in exception handler
+W: 20:some_function: Redefining name 'OSError' from builtins in exception handler
+W: 20:some_function: Unused variable 'OSError'
+W: 22:some_function: Redefining name 'MyError' from outer scope (line 7) in exception handler
+W: 22:some_function: Unused variable 'MyError'
+W: 45: Redefining name 'RuntimeError' from object 'exceptions' in exception handler
+W: 47: Redefining name 'args' from object 'exceptions.RuntimeError' in exception handler
+W: 49: Redefining name 'OSError' from builtins in exception handler
+W: 51: Redefining name 'MyOtherError' from outer scope (line 36) in exception handler
diff --git a/tests/messages/func_w0801.txt b/tests/messages/func_w0801.txt
new file mode 100644
index 000000000..203ce9294
--- /dev/null
+++ b/tests/messages/func_w0801.txt
@@ -0,0 +1,11 @@
+R: 1: Similar lines in 2 files
+==input.func_w0801:3
+==input.w0801_same:3
+__revision__ = 'id'
+A = 2
+B = 3
+C = A + B
+# need more than X lines to trigger the message
+C *= 2
+A -= B
+# all this should be detected
diff --git a/tests/messages/func_with_without_as_py25.txt b/tests/messages/func_with_without_as_py25.txt
new file mode 100644
index 000000000..18ca3711c
--- /dev/null
+++ b/tests/messages/func_with_without_as_py25.txt
@@ -0,0 +1,3 @@
+E: 11:do_nothing: Using variable 'base' before assignment
+W: 11:do_nothing: Statement seems to have no effect
+