Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/view/test_tracking.py   portfoliyo(Download)
    def test_json(self):
        """json method outputs tracking data as JSON, clears from session."""
        request = mock.Mock()
        request.session = {'tracking': [('some event', {'foo': 'bar'})]}
        events = tracking.EventList(request)