<commit_before>#!/usr/bin/env python
import unittest, fifthrow
from fifthrow.fifthrow import *

class FifthRowTest(unittest.TestCase):

    def test_url(self):
        '''
        FifthRow object's url should be the sandboxed url
        '''
        self.assertEqual(FifthRow(sandbox=True).url, 'sandbox.the5throw.com')

    def test_get_return(self):
        '''
        FifthRow.get() should return a list of Matchup objects
        '''
        data = FifthRow(sandbox=True).get('nba')
        self.assertIs(type(data), list)
        self.assertEqual(data[0].__class__, Matchup)

    def test_token_error(self):
        '''
        TokenError should be raised if token != an integer<commit_msg>Updated/wrote better tests<commit_after>#!/usr/bin/env python
import unittest, fifthrow
from fifthrow.fifthrow import *

class FifthRowTest(unittest.TestCase):

    def test_sandboxed_url(self):
        '''
        FifthRow object's url should be the sandboxed url.
        '''
        self.assertEqual(FifthRow(sandbox=True).url, 'sandbox.the5throw.com')

    def test_sandboxed_token(self):
        '''
        A sandboxed FifthRow should have a token of 'sandbox'
        regardless of token parameter.
        '''
        self.assertEqual(FifthRow(sandbox=True, token=5555).token, 'sandbox')

    def test_none_token(self):
        '''
        TokenError should be raised if token != an integer.
{'fraction_non_alphanumeric': 0.1082437275985663, 'fraction_numerical': 0.005017921146953405, 'mean_word_length': 2.8885793871866294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7103579', 'n_tokens_mistral': 436, 'n_tokens_neox': 412, 'n_words': 99}