<commit_before>import unittest
import os

from phon.io.read.read_from_neper_inp import read_from_neper_inp
from phon.io.write.export_to_abaqus import export_to_abaqus


class Test(unittest.TestCase):
    """Unit tests for read_from_neper_inp."""

    def setUp(self):
        self.mesh = read_from_neper_inp("n10-id1.inp")

    def test_export_to_abaqus(self):
        """Test Phons reader for neper inp files."""
        export_to_abaqus("test_file.inp", self.mesh)
    
    def tearDown(self):
        pass
        #if os.path.isfile("test_file.inp"):
         #   os.remove("test_file.inp")


if __name__ == "__main__":
    unittest.main()<commit_msg>Updated test for export<commit_after>import unittest
import os

from phon.io.read.read_from_neper_inp import read_from_neper_inp
from phon.io.write.export_to_abaqus import export_to_abaqus


class Test(unittest.TestCase):
    """Unit tests for read_from_neper_inp."""

    def setUp(self):
        self.mesh = read_from_neper_inp("n10-id1.inp")

    def test_export_to_abaqus(self):
        """Test Phons reader for neper inp files."""
        export_to_abaqus("test_file.inp", self.mesh)
        read_from_neper_inp("test_file.inp")
        export_to_abaqus("test_file_2.inp", self.mesh)
    
    def tearDown(self):
        pass
        if os.path.isfile("test_file.inp"):
            os.remove("test_file.inp")
        if os.path.isfile("test_file_2.inp"):
            os.remove("test_file_2.inp")

if __name__ == "__main__":
    unittest.main()
{'fraction_non_alphanumeric': 0.11584553928095873, 'fraction_numerical': 0.005992010652463382, 'mean_word_length': 3.306590257879656, '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': '1981113', 'n_tokens_mistral': 566, 'n_tokens_neox': 557, 'n_words': 94}