<commit_before>import unittest
from cryptotik.okcoin import OKcoin
from decimal import Decimal

class OKcoinTestCase(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        print('''Starting OKcoin API wrapper test.''')

    def test_format_pair(self):
        '''test string formating to match API expectations'''

        self.assertEqual(OKcoin.format_pair("btc-usd"), "btc_usd")

    def test_get_market_ticker(self):
        '''tests get_market_ticker>'''

        self.assertIsInstance(OKcoin.get_market_ticker("btc-usd"), dict)

    def test_get_market_orders(self):
        '''test getting the market orders'''

        self.assertIsInstance(OKcoin.get_market_order_book("btc-usd"), dict)

    def test_get_market_depth(self):
        '''test getting the market depth'''

        self.assertIsInstance(OKcoin.get_market_depth("ltc-usd"), dict)

    def test_get_market_spread(self):
        '''test get market spread'''

        self.assertIsInstance(OKcoin.get_market_spread("btc-usd"), Decimal)

    def test_get_market_trade_history(self):
        '''test getting the market history'''

        self.assertIsInstance(OKcoin.get_market_trade_history("ltc-usd"), list)

    def test_get_futures_ticker(self):

        self.assertIsInstance(OKcoin.get_futures_ticker("btc-usd"), dict)

if __name__ == '__main__':<commit_msg>OKcoin: improve tests a bit<commit_after>import unittest
from cryptotik.okcoin import OKcoin
from decimal import Decimal

class OKcoinTestCase(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        print('''Starting OKcoin API wrapper test.''')

    def test_format_pair(self):
        '''test string formating to match API expectations'''

        self.assertEqual(OKcoin.format_pair("btc-usd"), "btc_usd")

    def test_get_market_ticker(self):
        '''tests get_market_ticker>'''

        self.assertIsInstance(OKcoin.get_market_ticker("btc-usd"), dict)
        self.assertIn("buy", OKcoin.get_market_ticker("btc-cny"))

    def test_get_market_orders(self):
        '''test getting the market orders'''

        self.assertIsInstance(OKcoin.get_market_order_book("btc-usd"), dict)
        self.assertIn("asks", OKcoin.get_market_depth("ltc-cny"))

    def test_get_market_depth(self):
        '''test getting the market depth'''

        self.assertIsInstance(OKcoin.get_market_depth("ltc-usd"), dict)
        self.assertIn("asks", OKcoin.get_market_depth("ltc-cny"))

    def test_get_market_spread(self):
        '''test get market spread'''

        self.assertIsInstance(OKcoin.get_market_spread("btc-usd"), Decimal)

    def test_get_market_trade_history(self):
        '''test getting the market history'''

        self.assertIsInstance(OKcoin.get_market_trade_history("ltc-usd"), list)

    def test_get_futures_ticker(self):

        self.assertIsInstance(OKcoin.get_futures_ticker("btc-usd"), dict)

if __name__ == '__main__':
{'fraction_non_alphanumeric': 0.1200963523743978, 'fraction_numerical': 0.0, 'mean_word_length': 4.0120689655172415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5678890', 'n_tokens_mistral': 961, 'n_tokens_neox': 915, 'n_words': 167}