def test_snapshots_landing_page(self): request = testing.DummyRequest() view = SnapshotsView(request).snapshots_landing() self.assertTrue('/snapshots/json' in view.get('json_items_endpoint'))
def test_snapshots_view_defaults(self): request = testing.DummyRequest() view = SnapshotsView(request) self.assertEqual(view.prefix, '/snapshots') self.assertEqual(view.initial_sort_key, '-start_time')