'Test for wrong id of Software secure verification attempt.'

@mock.patch('lms.djangoapps.verify_student.ssencrypt.has_valid_signature', mock.Mock(side_effect=mocked_has_valid_signature))
def test_wrong_edx_id(self):

    data = {'EdX-ID': 'Invalid-Id', 'Result': 'Testing', 'Reason': 'Testing', 'MessageType': 'Testing'}
    json_data = json.dumps(data)
    response = self.client.post(reverse('verify_student_results_callback'), data=json_data, content_type='application/json', HTTP_AUTHORIZATION='test    BBBBBBBBBBBBBBBBBBBB:testing', HTTP_DATE='testdate')
    self.assertIn('edX    ID    Invalid-Id    not    found', response.content)
    self.assertEqual(response.status_code, 400)
