def setUp(self): self.source = Source.objects.all()[0] self.update_url = self.source.get_absolute_url() + 'edit/' self.post_data = dict(SourceFactory.attributes(), user=1)
def setUp(self): self.create_url = '/c/source/create/' self.post_data = dict(SourceFactory.attributes(), user=1)