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