Skip to content

Commit

Permalink
xml generator test added
Browse files Browse the repository at this point in the history
  • Loading branch information
Elihayb committed May 8, 2023
1 parent 5fba74b commit 3cb7904
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/providers/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import unittest
import uuid
import zipfile
import xml

try:
import PIL.Image
Expand Down Expand Up @@ -455,6 +456,12 @@ def test_dsv_csvwriter_kwargs(self, faker):
for args, kwargs in mock_writer.call_args_list:
assert kwargs == test_kwargs

def test_xml(self, faker):
try:
xml.etree.ElementTree.fromstring(faker.xml())
except xml.etree.ElementTree.ParseError:
raise AssertionError("The xml format is invalid")

def test_csv_helper_method(self, faker):
kwargs = {
"header": ["Column 1", "Column 2"],
Expand Down

0 comments on commit 3cb7904

Please sign in to comment.