'test to see if just sending ip address doesn\'t check the user tracking box'

def test_no_user_tracking_for_ip_address_only(self):

    userless_payload = '\n                                                {\n                                                                "id":    "f5dd88e612bc406ba89dfebd09120769",\n                                                                "project":    11276,\n                                                                "release":    "e1b5d1900526feaf20fe2bc9cad83d392136030a",\n                                                                "platform":    "javascript",\n                                                                "culprit":    "app/components/events/eventEntries    in    map",\n                                                                "message":    "TypeError:    Cannot    read    property    \'1\'    of    null",\n                                                                "tags":    [\n                                                                                ["environment",    "prod"],\n                                                                                ["sentry_version",    "e1b5d1900526feaf20fe2bc9cad83d392136030a"],\n                                                                                ["level",    "error"],\n                                                                                ["logger",    "javascript"],\n                                                                                ["sentry:release",    "e1b5d1900526feaf20fe2bc9cad83d392136030a"],\n                                                                                ["browser",    "Chrome    48.0"],\n                                                                                ["device",    "Other"],\n                                                                                ["os",    "Windows    10"],\n                                                                                ["url",    "https://sentry.io/katon-direct/localhost/issues/112734598/"],\n                                                                                ["sentry:user",    "id:41656"]\n                                                                ],\n                                                                "errors":    [{\n                                                                                "url":    "<anonymous>",\n                                                                                "type":    "js_no_source"\n                                                                }],\n                                                                "extra":    {\n                                                                                "session:duration":    40364\n                                                                },\n                                                                "sentry.interfaces.Exception":    {\n                                                                                "exc_omitted":    null,\n                                                                                "values":    [{\n                                                                                                "stacktrace":    {\n                                                                                                                "frames":    [{\n                                                                                                                                "function":    "batchedUpdates",\n                                                                                                                                "abs_path":    "webpack:////usr/src/getsentry/src/sentry/~/react/lib/ReactUpdates.js",\n                                                                                                                                "pre_context":    ["        //    verify    that    that\'s    the    case.    (This    is    called    by    each    top-level    update",    "        //    function,    like    setProps,    setState,    forceUpdate,    etc.;    creation    and",    "        //    destruction    of    top-level    components    is    guarded    in    ReactMount.)",    "",    "        if    (!batchingStrategy.isBatchingUpdates)    {"],\n                                                                                                                                "post_context":    ["                return;",    "        }",    "",    "        dirtyComponents.push(component);",    "}"],\n                                                                                                                                "filename":    "~/react/lib/ReactUpdates.js",\n                                                                                                                                "module":    "react/lib/ReactUpdates",\n                                                                                                                                "colno":    0,\n                                                                                                                                "in_app":    false,\n                                                                                                                                "data":    {\n                                                                                                                                                "orig_filename":    "/_static/29e365f8b0d923bc123e8afa38d890c3/sentry/dist/vendor.js",\n                                                                                                                                                "orig_abs_path":    "https://media.sentry.io/_static/29e365f8b0d923bc123e8afa38d890c3/sentry/dist/vendor.js",\n                                                                                                                                                "sourcemap":    "https://media.sentry.io/_static/29e365f8b0d923bc123e8afa38d890c3/sentry/dist/vendor.js.map",\n                                                                                                                                                "orig_lineno":    37,\n                                                                                                                                                "orig_function":    "Object.s    [as    enqueueUpdate]",\n                                                                                                                                                "orig_colno":    16101\n                                                                                                                                },\n                                                                                                                                "context_line":    "                batchingStrategy.batchedUpdates(enqueueUpdate,    component);",\n                                                                                                                                "lineno":    176\n                                                                                                                }],\n                                                                                                                "frames_omitted":    null\n                                                                                                },\n                                                                                                "type":    "TypeError",\n                                                                                                "value":    "Cannot    read    property    \'1\'    of    null",\n                                                                                                "module":    null\n                                                                                }]\n                                                                },\n                                                                "sentry.interfaces.Http":    {\n                                                                                "url":    "https://sentry.io/katon-direct/localhost/issues/112734598/",\n                                                                                "headers":    [\n                                                                                                ["Referer",    "https://sentry.io/welcome/"],\n                                                                                                ["User-Agent",    "Mozilla/5.0    (Windows    NT    10.0;    WOW64)    AppleWebKit/537.36    (KHTML,    like    Gecko)    Chrome/48.0.2564.109    Safari/537.36"]\n                                                                                ]\n                                                                },\n                                                                "sentry.interfaces.User":    {\n                                                                                "ip_address":    "0.0.0.0"\n                                                                },\n                                                                "version":    "7",\n                                                                "sentry.interfaces.Breadcrumbs":    {\n                                                                                "values":    [\n                                                                                                {\n                                                                                                                "category":    "xhr",\n                                                                                                                "timestamp":    1496395011.63,\n                                                                                                                "type":    "http",\n                                                                                                                "data":    {\n                                                                                                                                "url":    "/api/path/here",\n                                                                                                                                "status_code":    "500",\n                                                                                                                                "method":    "POST"\n                                                                                                                }\n                                                                                                }\n                                                                                ]\n                                                                }\n                                                }'
    group = self.create_group(project=self.project, platform='javascript', message='javascript    error    message')
    userless_event = self.create_event(event_id='a', platform='javascript', data=json.loads(userless_payload))
    event_processed.send(project=self.project, group=group, event=userless_event, sender=type(self.project))
    feature_complete = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug='user_tracking')
    assert (feature_complete is None)
