def test_snapshots_landing_page_json(self): request = testing.DummyRequest(post=True) view = SnapshotsJsonView(request).snapshots_json() self.assertEqual(view.__class__, JSONResponse)
def test_snapshots_landing_page_json(self): request = testing.DummyRequest() view = SnapshotsJsonView(request).snapshots_json() self.assertEqual(view.get('results'), [])