test_file.py 658 Bytes
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
2
3
4
5
6
7
8
9
10
"""
Identifier:     tests/test_file.py
Name:           test_file.py
Description:    test File class
Author:         Bo Zhang
Created:        2023-12-13
Modified-History:
    2023-12-13, Bo Zhang, add TestFile
    2023-12-15, Bo Zhang, add module header
"""
BO ZHANG's avatar
BO ZHANG committed
11
import unittest
12

BO ZHANG's avatar
BO ZHANG committed
13
14
15
16
from csst_common import File


class TestFile(unittest.TestCase):
BO ZHANG's avatar
BO ZHANG committed
17
    def test_file(self):
18
19
20
21
22
23
        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)