File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4040- Use xmlunittest.XmlTestCase‘s assertion methods to validate
4141- Keep your test readable
4242
43- Example::
43+ Example:
44+
45+ .. code-block :: python
4446
4547 from xmlunittest import XmlTestCase
4648
Original file line number Diff line number Diff line change 88- Source: https://github.com/Exirel/python-xmlunittest
99
1010"""
11- from distutils .core import setup
1211
12+ import codecs
13+ import os
1314
14- with open ('README.txt' , encoding = 'utf-8' ) as fd :
15- long_description = fd .read ()
15+ from setuptools import setup
16+
17+
18+ def read (* parts ):
19+ return codecs .open (os .path .join (os .path .dirname (__file__ ), * parts ), encoding = 'utf-8' ).read ()
1620
1721
1822classifiers = [
2933setup (name = 'xmlunittest' ,
3034 version = '0.2.0' ,
3135 description = 'Library using lxml and unittest for unit testing XML.' ,
32- long_description = long_description ,
36+ long_description = read ( 'README.rst' ) ,
3337 author = 'Florian Strzelecki' ,
3438 author_email = 'florian.strzelecki@gmail.com' ,
3539 license = 'MIT' ,
3640 url = 'http://python-xmlunittest.readthedocs.org/en/latest/' ,
3741 py_modules = ['xmlunittest' ],
42+ install_requires = ['lxml>=3.3.6' ],
3843 classifiers = classifiers )
44+
Original file line number Diff line number Diff line change 33from __future__ import unicode_literals
44
55import io
6+ import os
67import unittest
78
89from lxml import etree
910from xmlunittest import XmlTestCase
10- import os
1111
1212
1313class TestXmlTestCase (unittest .TestCase ):
@@ -884,5 +884,4 @@ def test_assertXmlEquivalentOutputs_namespaces(self):
884884
885885
886886if __name__ == "__main__" :
887- #import sys;sys.argv = ['', 'Test.test_assertXmlDocument']
888887 unittest .main ()
You can’t perform that action at this time.
0 commit comments