aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/cacheview/tests.py
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2011-06-09 20:07:11 +0000
committerMichael Elkins <melkins@tislabs.com>2011-06-09 20:07:11 +0000
commit949ff01f80f57cac773ec543d13fbf412ce27780 (patch)
treee0261799e20dc4106057777437cb29219b1b2e0e /rpkid/rpki/gui/cacheview/tests.py
parent48ee451dad61a7e3b4222f85037db7a8b63d6fa9 (diff)
add support for browing the rcynic cache
svn path=/rpkid/portal-gui/scripts/rpkigui-rcynic.py; revision=3859
Diffstat (limited to 'rpkid/rpki/gui/cacheview/tests.py')
-rw-r--r--rpkid/rpki/gui/cacheview/tests.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/rpkid/rpki/gui/cacheview/tests.py b/rpkid/rpki/gui/cacheview/tests.py
new file mode 100644
index 00000000..2247054b
--- /dev/null
+++ b/rpkid/rpki/gui/cacheview/tests.py
@@ -0,0 +1,23 @@
+"""
+This file demonstrates two different styles of tests (one doctest and one
+unittest). These will both pass when you run "manage.py test".
+
+Replace these with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.failUnlessEqual(1 + 1, 2)
+
+__test__ = {"doctest": """
+Another way to test that 1 + 1 is equal to 2.
+
+>>> 1 + 1 == 2
+True
+"""}
+