test_models.py 314 Bytes
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import unittest
from astropy.io import fits

from csst_dfs_commons.models import Request

class CommonModelsTestCase(unittest.TestCase):

    def setUp(self):
        pass

    def test_request_result(self):
        r = Request(id = 1)
        assert r.id == 1, "not equal"
        assert r.xxx == '', "not equal"