I trying to test __str__ method, and when trying to access it in my test it returns my model instance (I think it is)
def test_str_is_equal_to_title(self):
"""
Method `__str__` should be equal to field `title`
"""
work = Work.objects.get(pk=1)
self.assertEqual(work.__str__, work.title)
And from test I get:
AssertionError: '<bound method Work.__str__ of <Work: Test title>>' != 'Test title'
How I should compare these 2 values to pass test?