Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
et_xmlfile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
et_xmlfile
Commits
abca45785d80
Commit
abca45785d80
authored
10 years ago
by
Charlie Clark
Browse files
Options
Downloads
Patches
Plain Diff
Make tests package
parent
338199af62e0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
et_xmlfile/tests/__init__.py
+0
-0
0 additions, 0 deletions
et_xmlfile/tests/__init__.py
et_xmlfile/tests/helper.py
+21
-0
21 additions, 0 deletions
et_xmlfile/tests/helper.py
et_xmlfile/tests/test_incremental_xmlfile.py
+0
-0
0 additions, 0 deletions
et_xmlfile/tests/test_incremental_xmlfile.py
with
21 additions
and
0 deletions
et_xmlfile/tests/__init__.py
0 → 100644
+
0
−
0
View file @
abca4578
This diff is collapsed.
Click to expand it.
et_xmlfile/tests/helper.py
0 → 100644
+
21
−
0
View file @
abca4578
from
__future__
import
absolute_import
# Copyright (c) 2010-2015 openpyxl
# Python stdlib imports
from
lxml.doctestcompare
import
LXMLOutputChecker
,
PARSE_XML
def
compare_xml
(
generated
,
expected
):
"""
Use doctest checking from lxml for comparing XML trees. Returns diff if the two are not the same
"""
checker
=
LXMLOutputChecker
()
class
DummyDocTest
():
pass
ob
=
DummyDocTest
()
ob
.
want
=
expected
check
=
checker
.
check_output
(
expected
,
generated
,
PARSE_XML
)
if
check
is
False
:
diff
=
checker
.
output_difference
(
ob
,
generated
,
PARSE_XML
)
return
diff
This diff is collapsed.
Click to expand it.
et_xmlfile/test_incremental_xmlfile.py
→
et_xmlfile/
tests/
test_incremental_xmlfile.py
+
0
−
0
View file @
abca4578
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment