summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorroot <devnull@localhost>2006-04-26 10:48:09 +0000
committerroot <devnull@localhost>2006-04-26 10:48:09 +0000
commit8c34746eabf8ad07ebae3a3ac60aaaf353b838c9 (patch)
treee86497dd9b20b497d0056be7108072dce324c38e /test/data
downloadpylint-8c34746eabf8ad07ebae3a3ac60aaaf353b838c9.tar.gz
forget the past.
forget the past.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/__init__.py0
-rw-r--r--test/data/clientmodule_test.py28
-rw-r--r--test/data/suppliermodule_test.py13
3 files changed, 41 insertions, 0 deletions
diff --git a/test/data/__init__.py b/test/data/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/data/__init__.py
diff --git a/test/data/clientmodule_test.py b/test/data/clientmodule_test.py
new file mode 100644
index 0000000..be4eaee
--- /dev/null
+++ b/test/data/clientmodule_test.py
@@ -0,0 +1,28 @@
+""" docstring for file clientmodule.py """
+from data.suppliermodule_test import Interface as IFace, DoNothing
+
+class Ancestor:
+ """ Ancestor method """
+ __implements__ = (IFace,)
+
+ def __init__(self, value):
+ local_variable = 0
+ self.attr = 'this method shouldn\'t have a docstring'
+ self.__value = value
+
+ def get_value(self):
+ """ nice docstring ;-) """
+ return self.__value
+
+ def set_value(self, value):
+ self.__value = value
+ return 'this method shouldn\'t have a docstring'
+
+class Specialization(Ancestor):
+ TYPE = 'final class'
+ top = 'class'
+
+ def __init__(self, value, _id):
+ Ancestor.__init__(self, value)
+ self._id = _id
+ self.relation = DoNothing()
diff --git a/test/data/suppliermodule_test.py b/test/data/suppliermodule_test.py
new file mode 100644
index 0000000..ddacb47
--- /dev/null
+++ b/test/data/suppliermodule_test.py
@@ -0,0 +1,13 @@
+""" file suppliermodule.py """
+
+class NotImplemented(Exception):
+ pass
+
+class Interface:
+ def get_value(self):
+ raise NotImplemented()
+
+ def set_value(self, value):
+ raise NotImplemented()
+
+class DoNothing : pass