from django.test import TestCase
import .models

class ModelTests(TestCase):

@@ -30,48 +30,654 @@
 ase%0A
-import .models%0A%0Aclass ModelTests(TestCase):
+from .models import Author, Publisher, Edition, Setting, Adventure%0A%0A%0Aclass AuthorTests(TestCase):%0A    def setUp(self):%0A        self.gygax = Author.objects.create(name='Gary Gygax')%0A%0A    def test_create_author(self):%0A        self.assertEqual(Author.objects.first(), self.gygax)%0A        self.assertEqual(Author.objects.count(), 1)%0A%0A    def test_update_author(self):%0A        Author.objects.filter(id=self.gygax.id).update(name='Joe Bloggs')%0A        self.assertEqual(Author.objects.first().name, 'Joe Bloggs')%0A%0A    def test_delete_author(self):%0A        Author.objects.filter(id=self.gygax.id).delete()%0A        self.assertEqual(Author.objects.count(), 0)
 %0A

Add Author model CRUD tests