(self, user=None, expected=status.HTTP_403_FORBIDDEN)
| 16 | return response |
| 17 | |
| 18 | def assert_create(self, user=None, expected=status.HTTP_403_FORBIDDEN): |
| 19 | if user: |
| 20 | self.client.force_login(user) |
| 21 | response = self.client.post(self.url, data=self.data, format="json") |
| 22 | self.assertEqual(response.status_code, expected) |
| 23 | return response |
| 24 | |
| 25 | def assert_update(self, user=None, expected=status.HTTP_403_FORBIDDEN): |
| 26 | if user: |