'Tests deletion of an active certificate without global staff permission on course.'

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

    self._add_course_certificates(count=2, signatory_count=1, is_active=True, asset_path_format=signatory_path)
    user = UserFactory()
    for role in [CourseInstructorRole, CourseStaffRole]:
        role(self.course.id).add_users(user)
    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)
