<commit_before>#!/usr/bin/env python

import circleclient
import pytest
import httpretty


ENDPOINT = 'https://circleci.com/api/v1'


@pytest.fixture()
def client():
    return circleclient.CircleClient(api_token='token')


class TestClient(object):

    def test_client_has_instances(self, client):
        assert isinstance(client.user, circleclient.User)
        assert isinstance(client.projects, circleclient.Projects)
        assert isinstance(client.build, circleclient.Build)

    def test_client_headers(self, client):
        headers = client.headers
        assert isinstance(headers, dict)
        assert 'content-type' in headers
        assert 'accept' in headers
        assert 'application/json' == headers['content-type']
        assert 'application/json' == headers['accept']<commit_msg>Update unittest.<commit_after>#!/usr/bin/env python

import circleclient
import pytest
import httpretty


ENDPOINT = 'https://circleci.com/api/v1'


@pytest.fixture()
def client():
    return circleclient.CircleClient(api_token='token')


class TestClient(object):

    def test_client_has_instances(self, client):
        assert isinstance(client.user, circleclient.User)
        assert isinstance(client.projects, circleclient.Projects)
        assert isinstance(client.build, circleclient.Build)
        assert isinstance(client.cache, circleclient.Cache)

    def test_client_headers(self, client):
        headers = client.headers
        assert isinstance(headers, dict)
        assert 'content-type' in headers
        assert 'accept' in headers
        assert 'application/json' == headers['content-type']
        assert 'application/json' == headers['accept']
{'fraction_non_alphanumeric': 0.10520023909145249, 'fraction_numerical': 0.001195457262402869, 'mean_word_length': 3.7556818181818183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6847155', 'n_tokens_mistral': 467, 'n_tokens_neox': 458, 'n_words': 105}