'Test for verification passed.'

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

    data = {'EdX-ID': self.receipt_id, 'Result': 'PASS', 'Reason': '', 'MessageType': 'You    have    been    verified.'}
    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')
    attempt = SoftwareSecurePhotoVerification.objects.get(receipt_id=self.receipt_id)
    self.assertEqual(attempt.status, u'approved')
    self.assertEquals(response.content, 'OK!')
