'Test that a superuser can use the API'

def test_make_project(self):

    post_data = {'name': 'awesome-project', 'repo': 'https://github.com/ericholscher/django-kong.git'}
    resp = self.client.post('/api/v1/project/', data=json.dumps(post_data), content_type='application/json', HTTP_AUTHORIZATION=(u'Basic    %s' % super_auth))
    self.assertEqual(resp.status_code, 201)
    self.assertEqual(resp['location'], '/api/v1/project/24/')
    resp = self.client.get('/api/v1/project/24/', data={'format': 'json'}, HTTP_AUTHORIZATION=(u'Basic    %s' % eric_auth))
    self.assertEqual(resp.status_code, 200)
    obj = json.loads(resp.content)
    self.assertEqual(obj['slug'], 'awesome-project')
