示例#1
0
def test__parse_sdc_status_empty():
    assert SdcResource._parse_sdc_status("", None, logging.getLogger()) is None
示例#2
0
def test__parse_sdc_status_under_certification():
    assert SdcResource._parse_sdc_status(
        const.CERTIFICATION_IN_PROGRESS, None,
        logging.getLogger()) == const.UNDER_CERTIFICATION
示例#3
0
def test__parse_sdc_status_unknown():
    assert SdcResource._parse_sdc_status("UNKNOWN", None,
                                         logging.getLogger()) == 'UNKNOWN'
示例#4
0
def test__parse_sdc_status_submitted():
    assert SdcResource._parse_sdc_status(
        const.READY_FOR_CERTIFICATION, None,
        logging.getLogger()) == const.SUBMITTED
示例#5
0
def test__parse_sdc_status_draft():
    assert SdcResource._parse_sdc_status(
        const.NOT_CERTIFIED_CHECKIN, None,
        logging.getLogger()) == const.CHECKED_IN
示例#6
0
def test__parse_sdc_status_distributed():
    assert SdcResource._parse_sdc_status(
        "CERTIFIED", const.SDC_DISTRIBUTED,
        logging.getLogger()) == const.DISTRIBUTED
示例#7
0
def test__parse_sdc_status_certified_approved():
    assert SdcResource._parse_sdc_status(
        "CERTIFIED", const.DISTRIBUTION_APPROVED,
        logging.getLogger()) == const.CERTIFIED
示例#8
0
def test__parse_sdc_status_certified():
    assert SdcResource._parse_sdc_status(
        "CERTIFIED", None, logging.getLogger()) == const.CERTIFIED