summaryrefslogtreecommitdiff
path: root/build/lib.linux-i686-2.6/objectapp/tests/custom_spam_checker.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/lib.linux-i686-2.6/objectapp/tests/custom_spam_checker.py')
-rw-r--r--build/lib.linux-i686-2.6/objectapp/tests/custom_spam_checker.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/lib.linux-i686-2.6/objectapp/tests/custom_spam_checker.py b/build/lib.linux-i686-2.6/objectapp/tests/custom_spam_checker.py
new file mode 100644
index 00000000..16ccea48
--- /dev/null
+++ b/build/lib.linux-i686-2.6/objectapp/tests/custom_spam_checker.py
@@ -0,0 +1,10 @@
+"""Custom spam checker backend for testing Objectapp"""
+from django.core.exceptions import ImproperlyConfigured
+
+
+raise ImproperlyConfigured('This backend only exists for testing')
+
+
+def backend(gbobject):
+ """Custom spam checker backend for testing Objectapp"""
+ return False