Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)