def test__parse_sdc_status_empty():
    assert SdcResource._parse_sdc_status("", None, logging.getLogger()) is None
def test__parse_sdc_status_under_certification():
    assert SdcResource._parse_sdc_status(
        const.CERTIFICATION_IN_PROGRESS, None,
        logging.getLogger()) == const.UNDER_CERTIFICATION
def test__parse_sdc_status_unknown():
    assert SdcResource._parse_sdc_status("UNKNOWN", None,
                                         logging.getLogger()) == 'UNKNOWN'
def test__parse_sdc_status_submitted():
    assert SdcResource._parse_sdc_status(
        const.READY_FOR_CERTIFICATION, None,
        logging.getLogger()) == const.SUBMITTED
def test__parse_sdc_status_draft():
    assert SdcResource._parse_sdc_status(
        const.NOT_CERTIFIED_CHECKIN, None,
        logging.getLogger()) == const.CHECKED_IN
def test__parse_sdc_status_distributed():
    assert SdcResource._parse_sdc_status(
        "CERTIFIED", const.SDC_DISTRIBUTED,
        logging.getLogger()) == const.DISTRIBUTED
def test__parse_sdc_status_certified_approved():
    assert SdcResource._parse_sdc_status(
        "CERTIFIED", const.DISTRIBUTION_APPROVED,
        logging.getLogger()) == const.CERTIFIED
def test__parse_sdc_status_certified():
    assert SdcResource._parse_sdc_status(
        "CERTIFIED", None, logging.getLogger()) == const.CERTIFIED