Skip to content

Commit

Permalink
Added a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Jan 18, 2024
1 parent 556e729 commit 0f922f2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/unit/xsdata_xml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def test_prediction(self):
<prediction xmlns:update="urn:vpro:media:update:2009">INTERNETVOD</prediction>
""", prediction)


def test_media_form(self):
form = MediaForm()
form.searches = MediaSearchType()
Expand All @@ -193,3 +192,12 @@ def test_media_form(self):
<?xml version="1.0" encoding="UTF-8"?>
<api:mediaForm xmlns:update="urn:vpro:media:update:2009" xmlns:pageupdate="urn:vpro:pages:update:2013" xmlns:media="urn:vpro:media:2009" xmlns:pages="urn:vpro:pages:2013" xmlns:api="urn:vpro:api:2013"><api:searches><api:types>BROADCAST</api:types></api:searches></api:mediaForm>
""", form)

def test_upload_response(self):
example = """
<uploadResponse xmlns="urn:vpro:media:update:2009" xmlns:media="urn:vpro:media:2009" xmlns:shared="urn:vpro:shared:2009" statusCode="302" mid="WO_NTR_13058977"><version>2:https://sourcing-service.acc.metadata.bijnpo.nl/</version></uploadResponse>
"""
parsed = poms.from_string(example)



0 comments on commit 0f922f2

Please sign in to comment.