'Helper function for making a request to the deactivation endpoint, and asserting the status.
Args:
expected_status(int): Expected request\'s response status.
expected_activation_status(bool): Expected user has_usable_password attribute value.'

def assert_activation_status(self, headers, expected_status=status.HTTP_200_OK, expected_activation_status=False):

    self.assertTrue(self.test_user.has_usable_password())
    response = self.client.post(self.url, **headers)
    self.assertEqual(response.status_code, expected_status)
    self.test_user.refresh_from_db()
    self.assertEqual(self.test_user.has_usable_password(), expected_activation_status)
