From c6674071ac052bb4ef18d7a0de61e773473c11dc 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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/djangoldp/tests/tests_get.py b/djangoldp/tests/tests_get.py
index abedc23f..9f5564d9 100644
--- a/djangoldp/tests/tests_get.py
+++ b/djangoldp/tests/tests_get.py
@@ -35,3 +35,8 @@ 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)
+
-- 
GitLab