'Verify a user is deactivated when a user with permission posts to the deactivation endpoint.'

def test_user_with_permission_deactivates_user(self):

    user = UserFactory()
    permission = PermissionFactory(codename='can_deactivate_users', content_type=ContentTypeFactory(app_label='student'))
    user.user_permissions.add(permission)
    headers = self.build_jwt_headers(user)
    self.assertTrue(self.test_user.has_usable_password())
    self.assert_activation_status(headers)
