(self, user=None, expected=status.HTTP_403_FORBIDDEN)
| 9 | data: Dict[str, Any] = {} |
| 10 | |
| 11 | def assert_fetch(self, user=None, expected=status.HTTP_403_FORBIDDEN): |
| 12 | if user: |
| 13 | self.client.force_login(user) |
| 14 | response = self.client.get(self.url) |
| 15 | self.assertEqual(response.status_code, expected) |
| 16 | return response |
| 17 | |
| 18 | def assert_create(self, user=None, expected=status.HTTP_403_FORBIDDEN): |
| 19 | if user: |