Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread palmeida
Is that all your code? I don't see a line like this (from my generate_pdf function): doc = SimpleDocTemplate(response, pagesize=A4) That's what links the 'response' variable to the output of the doc.build function. But I don't think that should be what's causing the IndexError, because you don't

Unit test failing with 302 instead of 200, using Django's TestCase class

2009-08-04 Thread palmeida
Hi, I'm running a test that fails when using Django's TestCase class, but not when running TestCase from unittest. This is my test class: class LoggedInUser(TestCase): fixtures = ['myflow'] def setUp(self): self.client = Client() try: User.objects.create_user(