Skip to content

Commit

Permalink
Make tests just compare xml output directly
Browse files Browse the repository at this point in the history
This avoids a dependency on lxml and seems to work fine for now.
  • Loading branch information
jessevdk committed Nov 29, 2014
1 parent a49fc31 commit d0fa020
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
from cldoc import fs
import glob, os

from lxml import objectify
from lxml import etree
from xml import etree

fs.fs = fs.Virtual

Expand All @@ -33,11 +32,8 @@ def t(self):

gf = fs.fs.open(os.path.join('xml', 'xml', xmlname))

got = objectify.parse(gf)
got = etree.tostring(got, pretty_print=True)

exp = objectify.parse(open(f))
exp = etree.tostring(exp, pretty_print=True)
got = gf.read()
exp = open(f).read()

self.maxDiff = None
self.assertMultiLineEqual(got, exp)
Expand Down

0 comments on commit d0fa020

Please sign in to comment.