-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from XLSForm/namespaces
add additional namespaces to XForm
- Loading branch information
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,5 @@ | |
|
||
OSM = u"osm" | ||
OSM_TYPE = u"binary" | ||
|
||
NAMESPACES = u'namespaces' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from pyxform_test_case import PyxformTestCase | ||
|
||
|
||
class CustomXMLNamespacesTest(PyxformTestCase): | ||
def test_custom_xml_name_spaces(self): | ||
# re: https://github.com/XLSForm/pyxform/issues/65 | ||
self.assertPyxformXform( | ||
name="custom_namespaces", | ||
md=""" | ||
| survey | | | | | ||
| | type | name | label | | ||
| | note | q | Q | | ||
| settings | | | | | ||
| | namespaces | | | | ||
| | esri="http://esri.com/xforms" enk="http://enketo.org/xforms" naf="http://nafundi.com/xforms" | | | | ||
""", | ||
xml__contains=[ | ||
'xmlns="http://www.w3.org/2002/xforms"', | ||
'xmlns:h="http://www.w3.org/1999/xhtml"', | ||
'xmlns:jr="http://openrosa.org/javarosa"', | ||
'xmlns:orx="http://openrosa.org/xforms"', | ||
'xmlns:xsd="http://www.w3.org/2001/XMLSchema"', | ||
'xmlns:esri="http://esri.com/xforms"', | ||
'xmlns:enk="http://enketo.org/xforms"', | ||
'xmlns:naf="http://nafundi.com/xforms"', | ||
], | ||
) |