def test_str(self): ''' Test for method __str__ on object ''' p_1 = Post('Test', 'Test Content') self.assertEqual(p_1.__str__(), f"Title: {p_1.title}, Content: {p_1.content}")