def test_queue_ga_event_append(self):
    request = RequestFactory().get('/')
    request.session = self.client.session
    request.session['ga_events'] = [['send', 'event', 'foo']]
    queue_ga_event(request, ['send', 'event', 'bar'])
    self.assertEqual(request.session['ga_events'], [['send', 'event', 'foo'], ['send', 'event', 'bar']])
    self.assertTrue(request.session.modified)
def test_queue_ga_event_append(self):
    request = RequestFactory().get('/')
    request.session = self.client.session
    request.session['ga_events'] = [['send', 'event', 'foo']]
    queue_ga_event(request, ['send', 'event', 'bar'])
    self.assertEqual(request.session['ga_events'], [['send', 'event', 'foo'], ['send', 'event', 'bar']])
    self.assertTrue(request.session.modified)