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