new engine/ app, the location to where to implement plugin/query and
[unfold.git] / engine / tests.py
diff --git a/engine/tests.py b/engine/tests.py
new file mode 100644 (file)
index 0000000..adc92ed
--- /dev/null
@@ -0,0 +1,19 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+from plugins.simplelist import SimpleList
+
+class PluginTest(TestCase):
+    def test_basic(self):
+        """
+        Tests that 1 + 1 always equals 2.
+        """
+        sl = SimpleList (visible=True)
+        print 'rendering', sl.render()
+        self.assertEqual(1 + 1, 2)