Merge pull request #887 from dod-ccpo/to-review

TO Review Page
This commit is contained in:
George Drummond
2019-06-12 11:28:15 -04:00
committed by GitHub
5 changed files with 102 additions and 41 deletions

18
tests/models/test_clin.py Normal file
View 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()