Example #1
0
def test_file_data_status_case_false():
    ca_status["key"] = True
    ca_status["certificate"] = True

    assert file_data_status(ca_status)

    ca_status["certificate"] = False
    assert file_data_status(ca_status) is False
Example #2
0
def test_file_data_status_case_none():
    ca_status["key"] = False
    ca_status["certificate"] = False

    assert file_data_status(ca_status) is None
Example #3
0
def test_file_data_status():
    ca_status["key"] = True
    ca_status["certificate"] = True
    assert file_data_status(ca_status)
Example #4
0
def test_file_data_status_case_none():
    ca_status.key = False
    ca_status.certificate = False

    assert file_data_status(ca_status) is None
Example #5
0
def test_file_data_status_case_false():
    ca_status.key = True
    ca_status.certificate = False
    assert file_data_status(ca_status) is False
Example #6
0
def test_file_data_status():
    ca_status.key = True
    ca_status.certificate = True
    assert file_data_status(ca_status)