<commit_before>import os
import sys
import pandas as pd
from ..storm import Storm, read_WWLN


def test_reading_function():
    """Example of how to run a test. In this case to see if reading
    is a function. """
    def foo(): pass
    assert type(Storm.read_data) == type(foo)


def test_examine_date_structure():
    test_data = read_WWLN("stormstats/egdata/testdata.loc")
    """Check datetime is right type and elements of the datetime are ints"""
    assert isinstance(test_data['datetime'][0], pd.tslib.Timestamp)
    assert isinstance(test_data['datetime'][0].date().year, int)
    assert isinstance(test_data['datetime'][0].time().microsecond, int)<commit_msg>tests passing in 2.7 and 3.5 now<commit_after>import os
import sys
import pandas as pd
from ..storm import Storm, read_WWLN



def test_examine_date_structure():
    """Check datetime is right type and elements of the datetime are ints"""
    test_data = read_WWLN("stormstats/egdata/testdata.loc")
    assert isinstance(test_data['datetime'][0], pd.tslib.Timestamp)
    assert isinstance(test_data['datetime'][0].date().year, int)
    assert isinstance(test_data['datetime'][0].time().microsecond, int)
{'fraction_non_alphanumeric': 0.12180579216354344, 'fraction_numerical': 0.008517887563884156, 'mean_word_length': 4.875, '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': '3688949', 'n_tokens_mistral': 361, 'n_tokens_neox': 354, 'n_words': 106}