aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-03-17 08:51:26 +0000
committertom christie tom@tomchristie.com2011-03-17 08:51:26 +0000
commit7856656df0c60d038f2d2c584e3bf9a5420cc801 (patch)
treecbe4154257e38be134846f5ec41e8db2eddb794b
parentc59e63252f0da33b2160d043ab83c38c0a86d576 (diff)
downloaddjango-rest-framework-7856656df0c60d038f2d2c584e3bf9a5420cc801.tar.bz2
Add VERSION string
-rw-r--r--djangorestframework/__init__.py1
-rw-r--r--djangorestframework/tests/package.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/djangorestframework/__init__.py b/djangorestframework/__init__.py
index e69de29b..522771b5 100644
--- a/djangorestframework/__init__.py
+++ b/djangorestframework/__init__.py
@@ -0,0 +1 @@
+VERSION="0.1.1"
diff --git a/djangorestframework/tests/package.py b/djangorestframework/tests/package.py
new file mode 100644
index 00000000..4128333c
--- /dev/null
+++ b/djangorestframework/tests/package.py
@@ -0,0 +1,11 @@
+"""Tests for the djangorestframework package setup."""
+from django.test import TestCase
+import djangorestframework
+
+class TestVersion(TestCase):
+ """Simple sanity test to check the VERSION exists"""
+
+ def test_version(self):
+ """Ensure the VERSION exists."""
+ djangorestframework.VERSION
+