예제 #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