test_file.py 427 Bytes
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
import unittest
2

BO ZHANG's avatar
BO ZHANG committed
3
4
5
6
7
from csst_common import File


class TestFile(unittest.TestCase):
    def test_parameterized_module_decorator(self):
8
9
10
11
12
13
        file_path = (
            "/dfs_root/L0/MSC/SCI/61605/10160000072/MS/"
            "CSST_MSC_MS_SCIE_20270719043315_20270719043545_10160000072_07_L0_V01.fits"
        )
        file = File(file_path, new_dir="/pipeline/output")
        self.assertTrue(file.mo.groupdict() is not None)