def setUp(self): self.acc1 = User.create_user(email='*****@*****.**', password='******') self.news_object = News(title="test news title", text="test news text", preview_text="test news preview text", author=self.acc1) self.news_object.save()