예제 #1
0
def test_get_root_values_success():
    class_being_tested = MaliciousIntentViaSecureKubeletPort(
        create_test_event_type_two(), None)
    root_value, root_value_type = class_being_tested.get_root_values(
        cat_proc_cmdline)

    assert root_value == "Mock" and root_value_type == "LABEL="
예제 #2
0
def test_get_root_values_failure():
    class_being_tested = MaliciousIntentViaSecureKubeletPort(
        create_test_event_type_two(), None)
    root_value, root_value_type = class_being_tested.get_root_values("")

    assert root_value is None and root_value_type is None