'Verify that a proper token is returned.'

def test_request_token(self):

    request_with_token = RequestFactory().get(u'/')
    request_with_token._xblock_token = u'123'
    token = request_token(request_with_token)
    self.assertEqual(token, u'123')
    request_without_token = RequestFactory().get(u'/')
    token = request_token(request_without_token)
    test_uuid = uuid.UUID(token, version=1)
    self.assertEqual(token, test_uuid.hex)
