logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

xml_test.exs (439B)


  1. defmodule Pleroma.Web.XMLTest do
  2. use Pleroma.DataCase, async: true
  3. alias Pleroma.Web.XML
  4. test "refuses to parse any entities from XML" do
  5. data = File.read!("test/fixtures/xml_billion_laughs.xml")
  6. assert(:error == XML.parse_document(data))
  7. end
  8. test "refuses to load external entities from XML" do
  9. data = File.read!("test/fixtures/xml_external_entities.xml")
  10. assert(:error == XML.parse_document(data))
  11. end
  12. end