def METHOD_NAME(self, size):
    """
    Test base64 encoded retrival of single thumbnail
    """
    # Create a square image
    iid = self.create_test_image(size_x=256, size_y=256,
                                 session=self.sf).id.val
    args = [iid]
    if size is not None:
        args.append(size)
    request_url = reverse('webgateway_render_thumbnail', args=args)
    rsp = get(self.django_client, request_url)
    thumb = json.dumps(
        "data:image/jpeg;base64,%s" %
        base64.b64encode(rsp.content).decode("utf-8"))
    request_url = reverse('webgateway_get_thumbnail_json',
                          args=args)
    b64rsp = get(self.django_client, request_url).content.decode("utf-8")
    assert thumb == b64rsp