From f0222d5f47e624910e55469e0f9ce7a7dd61f271 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste <bleme@pm.me> Date: Mon, 25 Mar 2019 18:18:31 +0100 Subject: [PATCH] update: add test for 404 on containers. It's already fixed --- djangoldp/tests/tests_get.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/djangoldp/tests/tests_get.py b/djangoldp/tests/tests_get.py index abedc23f..264ae567 100644 --- a/djangoldp/tests/tests_get.py +++ b/djangoldp/tests/tests_get.py @@ -35,3 +35,9 @@ class TestGET(APITestCase): self.assertIn('permissions', response.data) self.assertEquals(1, len(response.data['permissions'])) # read only + def test_get_empty_container(self): + Post.objects.all().delete() + response = self.client.get('/posts/', content_type='application/ld+json') + self.assertEqual(response.status_code, 200) + self.assertEquals([], response.data) + -- GitLab