From 7856656df0c60d038f2d2c584e3bf9a5420cc801 Mon Sep 17 00:00:00 2001 From: tom christie tom@tomchristie.com Date: Thu, 17 Mar 2011 08:51:26 +0000 Subject: Add VERSION string --- djangorestframework/__init__.py | 1 + djangorestframework/tests/package.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 djangorestframework/tests/package.py (limited to 'djangorestframework') 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 + -- cgit v1.2.3