'Tests certificate deletion without write permission on course.'

@ddt.data(C4X_SIGNATORY_PATH, SIGNATORY_PATH)
def test_delete_certificate_without_write_permissions(self, signatory_path):

    self._add_course_certificates(count=2, signatory_count=1, asset_path_format=signatory_path)
    user = UserFactory()
    self.client.login(username=user.username, password='test')
    response = self.client.delete(self._url(cid=1), content_type='application/json', HTTP_ACCEPT='application/json', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    self.assertEqual(response.status_code, 403)
