summaryrefslogtreecommitdiff
path: root/tests/functional/t/too/too_many_instance_attributes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/t/too/too_many_instance_attributes.py')
-rw-r--r--tests/functional/t/too/too_many_instance_attributes.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/functional/t/too/too_many_instance_attributes.py b/tests/functional/t/too/too_many_instance_attributes.py
new file mode 100644
index 000000000..f6703e0b7
--- /dev/null
+++ b/tests/functional/t/too/too_many_instance_attributes.py
@@ -0,0 +1,26 @@
+# pylint: disable=missing-docstring, too-few-public-methods, useless-object-inheritance
+
+class Aaaa(object): # [too-many-instance-attributes]
+
+ def __init__(self):
+ self.aaaa = 1
+ self.bbbb = 2
+ self.cccc = 3
+ self.dddd = 4
+ self.eeee = 5
+ self.ffff = 6
+ self.gggg = 7
+ self.hhhh = 8
+ self.iiii = 9
+ self.jjjj = 10
+ self._aaaa = 1
+ self._bbbb = 2
+ self._cccc = 3
+ self._dddd = 4
+ self._eeee = 5
+ self._ffff = 6
+ self._gggg = 7
+ self._hhhh = 8
+ self._iiii = 9
+ self._jjjj = 10
+ self.tomuch = None