| Conditions | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from django.contrib.auth import user_logged_out |
||
| 21 | def test_post_should_logout_logged_in_user(self): |
||
| 22 | user = create_user() |
||
| 23 | user_logged_out.connect(self.signal_receiver) |
||
| 24 | request = self.factory.post(user=user) |
||
| 25 | |||
| 26 | response = self.view(request) |
||
| 27 | |||
| 28 | self.assert_status_equal(response, status.HTTP_204_NO_CONTENT) |
||
| 29 | self.assertEqual(response.data, None) |
||
| 30 | self.assertTrue(self.signal_sent) |
||
| 31 | |||
| 47 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.