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