Commit 13df314a authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add test for File class

parent 3fbc6ea2
Pipeline #2296 failed with stage
in 0 seconds
import unittest
from csst_common import File
class TestFile(unittest.TestCase):
def test_parameterized_module_decorator(self):
f = File("/path/to/file.fits")
self.assertEqual(f.switch_extension(".cat"), "/path/to/file.cat")
self.assertEqual(f.switch_extension("img.cat"), "/path/to/file_img.cat")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment