'Verify an AssertionError is raised if no request is passed as context to the field.'

def test_to_representation_without_request(self):

    self.field._context = {}
    self.assertRaises(AssertionError, self.field.to_representation, '/image.jpg')
