Beispiel #1
0
def test_replace_markers(session_string, dictio, expected_field,
                         expected_result):
    options = CLParser(session_string.split(" ")).parse_cl()
    options.compile_seeds()

    res = resfactory.create("fuzzres_from_options_and_dict", options, dictio)

    assert rgetattr(res.history, expected_field) == expected_result
Beispiel #2
0
    def get_next(self):
        next_item = next(self._it)

        return next_item if not self.attr else rgetattr(next_item, self.attr)
Beispiel #3
0
def test_nonexisting_attr_returns_empty_dict(dotdict_ex1):
    assert rgetattr(dotdict_ex1, "anything") == {}