from django.test import TestCase, Client
# Create your tests here.
from django.test import TestCase, Client
# Create your tests here.
from .models import QuoteTag, Author, Work, Quote
import re
import lxml.etree
from .models import QuoteTag, Author, Work, Quote
import re
import lxml.etree
a1 = Author.objects.create(name="JFK")
w1 = Work.objects.create(name="Berlin speech", author=a1)
q1 = Quote.objects.create(text="<p>Ich bin...</p>", work=w1)
a1 = Author.objects.create(name="JFK")
w1 = Work.objects.create(name="Berlin speech", author=a1)
q1 = Quote.objects.create(text="<p>Ich bin...</p>", work=w1)
class ViewsTest(TestCase):
def getPage(self, url, exp_status=200):
class ViewsTest(TestCase):
def getPage(self, url, exp_status=200):