<commit_before>from nose.tools import assert_is_none
import nyudv2_to_lmdb as n2l

import os

def split_matfile_to_val_list_invalid_path_dir():
    
    n2l.split_matfile_to_val_list(os.curdir)
    
def split_matfile_to_val_list_invalid_path():
    
    n2l.split_matfile_to_val_list('/foo/bar.mat')<commit_msg>cleanup tests<commit_after>from nose.tools import assert_raises
import os
import tempfile
import shutil
import nyudv2_to_lmdb as n2l
    
class TestHandlingSplitsFile:
    
    @classmethod
    def setup_class(self):
        
        self.path_temp_dir = tempfile.mkdtemp()
        
    @classmethod
    def teardown_class(self):
        
        shutil.rmtree(self.path_temp_dir)
        
    def test_invalid_path_dir(self):
        
        assert_raises(IOError, n2l.split_matfile_to_val_list, os.curdir)
        
    def test_invalid_path(self):
        
        assert_raises(IOError, n2l.split_matfile_to_val_list, '/foo/bar.mat')
{'fraction_non_alphanumeric': 0.06962025316455696, 'fraction_numerical': 0.008438818565400843, 'mean_word_length': 3.236607142857143, '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': '6018956', 'n_tokens_mistral': 349, 'n_tokens_neox': 345, 'n_words': 51}