'Test the mock comment service using an example
of how you would create a new user'

def test_new_user_request(self):

    values = {'username': u'user100', 'external_id': '4', 'email': u'user100@edx.org'}
    data = json.dumps(values)
    headers = {'Content-Type': 'application/json', 'Content-Length': len(data), 'X-Edx-Api-Key': 'TEST_API_KEY'}
    req = urllib2.Request((self.server_url + '/api/v1/users/4'), data, headers)
    response = urllib2.urlopen(req)
    response_dict = json.loads(response.read())
    self.assertEqual(response_dict, self.expected_response)
