<commit_before>import unittest
from nowtrade.symbol_list import SymbolList

class TestSymbolList(unittest.TestCase):
    def test_symbol_list(self):
        sanity = ['MSFT', 'GOOG', 'AAPL']
        symbols = ['msft', 'gOOg', 'AAPl']
        symbol_list = SymbolList(symbols)
        for symbol in symbol_list: sanity.remove(str(symbol))
        self.assertEqual(len(sanity), 0)
        msft = symbol_list.get('msft')
        self.assertEqual(msft.symbol, 'MSFT')
        self.assertEqual(msft.symbol, 'MSFT')
        self.assertEqual(msft.open, 'MSFT_Open')
        self.assertEqual(msft.high, 'MSFT_High')
        self.assertEqual(msft.low, 'MSFT_Low')
        self.assertEqual(msft.close, 'MSFT_Close')
        self.assertEqual(msft.volume, 'MSFT_Volume')
        self.assertEqual(msft.adj_close, 'MSFT_Adj Close')

if __name__ == "__main__":
    unittest.main()<commit_msg>symbol_list.py now 100% test coverage<commit_after>import unittest
from nowtrade.symbol_list import SymbolList, StockList

class TestSymbolList(unittest.TestCase):
    def test_symbol_list(self):
        sanity = ['MSFT', 'GOOG', 'AAPL']
        symbols = ['msft', 'gOOg', 'AAPl']
        stocks = symbols
        symbol_list = SymbolList(symbols)
        stock_list = StockList(stocks)
        for symbol in symbol_list: sanity.remove(str(symbol))
        self.assertEqual(len(sanity), 0)
        msft = symbol_list.get('msft')
        goog = symbol_list.get('goog')
        self.assertEqual(msft.symbol, 'MSFT')
        self.assertEqual(msft.symbol, 'MSFT')
        self.assertEqual(msft.open, 'MSFT_Open')
        self.assertEqual(msft.high, 'MSFT_High')
        self.assertEqual(msft.low, 'MSFT_Low')
        self.assertEqual(msft.close, 'MSFT_Close')
        self.assertEqual(msft.volume, 'MSFT_Volume')
        self.assertEqual(msft.adj_close, 'MSFT_Adj Close')
        self.assertEqual(symbol_list.get('TEST'), None)
        self.assertEqual(goog.symbol, 'GOOG')
        self.assertEqual(goog.symbol, 'GOOG')
        self.assertEqual(goog.open, 'GOOG_Open')
        self.assertEqual(goog.high, 'GOOG_High')
        self.assertEqual(goog.low, 'GOOG_Low')
        self.assertEqual(goog.close, 'GOOG_Close')
        self.assertEqual(goog.volume, 'GOOG_Volume')
        self.assertEqual(goog.adj_close, 'GOOG_Adj Close')

if __name__ == "__main__":
    unittest.main()
{'fraction_non_alphanumeric': 0.13373083475298125, 'fraction_numerical': 0.002129471890971039, 'mean_word_length': 3.302197802197802, 'pattern_counts': {'":': 2, '<': 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': '1043653', 'n_tokens_mistral': 786, 'n_tokens_neox': 782, 'n_words': 129}