# HG changeset patch -- Bitbucket.org # Project django-modelviews # URL http://bitbucket.org/david/django-modelviews/overview # User Will Larson # Date 1214138051 -32400 # Node ID 45d3937d57aa073be23d5d3429ddfdefa20f6813 # Parent f21c71f537eb666795d4f882576fd322a39c7c2d Removed the test testing the Article model, since it was a sanity check for setting up the test environment. --- a/tests/test_modelview/tests.py +++ b/tests/test_modelview/tests.py @@ -3,16 +3,6 @@ from models import Article, Comment from django.utils import simplejson from django.contrib.auth.models import User from xml.dom.minidom import parseString - - -class ArticleTest(TestCase): - def test_model(self): - a = Article.objects.create(name="An article", - slug="an-article", - body="some text") - self.assertEqual(a.name, "An article") - self.assertEqual(a.slug, "an-article") - self.assertEqual(a.body, "some text") class ModelViewTest(TestCase): @@ -20,6 +10,7 @@ class ModelViewTest(TestCase): Article.objects.create(name="My Story", slug="my-story", body="My thrilling story!") + david = User.objects.create_user('david', 'foo@example.com', 'baz') will = User.objects.create_user('will', 'bar@example.com', 'baz') Comment.objects.create(content="David comment", user=david)