def METHOD_NAME(self):
    request = self.request_factory.get('/api/foos')
    serializer = FooSerializer(self.foo,  context={'request': request})
    self.assertEqual(
        serializer.data['str_with_type'],
        '{}: {}'.format(Foo._meta.model_name, str(self.foo))
    )