def test_convert_to_json_false(self): from StixParser import convert_to_json js = "notjsonable" expected = None result = convert_to_json(js) assert result == expected, self.err_msg.format(expected, result)
def test_convert_to_json(self): from StixParser import convert_to_json js = "[]" expected = [] result = convert_to_json(js) assert result == expected, self.err_msg.format(expected, result)