18
tests/models/test_clin.py
Normal file
18
tests/models/test_clin.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from atst.models import CLIN
|
||||
from atst.models.clin import JEDICLINType
|
||||
|
||||
from tests.factories import *
|
||||
|
||||
|
||||
def test_is_obligated():
|
||||
clin_1 = CLINFactory.create(jedi_clin_type=JEDICLINType.JEDI_CLIN_1)
|
||||
assert clin_1.is_obligated()
|
||||
|
||||
clin_2 = CLINFactory.create(jedi_clin_type=JEDICLINType.JEDI_CLIN_2)
|
||||
assert not clin_2.is_obligated()
|
||||
|
||||
clin_3 = CLINFactory.create(jedi_clin_type=JEDICLINType.JEDI_CLIN_3)
|
||||
assert clin_3.is_obligated()
|
||||
|
||||
clin_4 = CLINFactory.create(jedi_clin_type=JEDICLINType.JEDI_CLIN_4)
|
||||
assert not clin_4.is_obligated()
|
Reference in New Issue
Block a user