Commits

Jesper Nøhr  committed 1d6bbc7

tests pass

  • Participants
  • Parent commits e8ab0c6

Comments (0)

Files changed (3)

File tests/buildout.cfg

 
 [django-1.1]
 recipe = djangorecipe
-version = trunk
+version = 1.1
 project = test_project
 settings = settings
 test = testapp

File tests/test_project/apps/testapp/tests.py

     def test_basic_validation_fails(self):
         resp = self.client.get('/api/echo')
         self.assertEquals(resp.status_code, 400)
-        self.assertEquals(resp.content, 'Bad Request: <ul class="errorlist">'
+        self.assertEquals(resp.content, 'Bad Request <ul class="errorlist">'
             '<li>msg<ul class="errorlist"><li>This field is required.</li>'
             '</ul></li></ul>')
 

File tests/test_project/settings.py

     'django.contrib.auth', 
     'django.contrib.contenttypes', 
     'django.contrib.sessions', 
+    'django.contrib.sites',
     'piston',
     'test_project.apps.testapp',
 )
 TEMPLATE_DIRS = (
     os.path.join(os.path.dirname(__file__), 'templates'),
 )
+
+SITE_ID = 1
 ROOT_URLCONF = 'test_project.urls'
 
 MIDDLEWARE_CLASSES = (