import os
import unittest

import cwepr.io
import cwepr.dataset

ROOTPATH = os.path.split(os.path.abspath(__file__))[0]


class TestTxtImporter(unittest.TestCase):
    def test_import(self):
        source = os.path.join(ROOTPATH, 'testdata/noisy_data')
        importer = cwepr.io.TxtImporter(source=source)
        dataset = cwepr.dataset.ExperimentalDataset()
        dataset.import_from(importer)

import os
import unittest

import cwepr.io
import cwepr.dataset

ROOTPATH = os.path.split(os.path.abspath(__file__))[0]


class TestTxtImporter(unittest.TestCase):
    def test_import(self):
        source = os.path.join(ROOTPATH, 'testdata/noisy_data')
        importer = cwepr.io.TxtImporter(source=source)
        dataset = cwepr.dataset.ExperimentalDataset()
        dataset.import_from(importer)
