def test_value(self):
     element = PostBodyRaw(value='1')
     rendered_doc = tag_wrapper(element.to_xml(), 'result')
     parsed_doc = xmltodict.parse(rendered_doc)
     for tag in parsed_doc['result']['elementProp']['stringProp']:
         if tag['@name'] == 'Argument.value':
             assert tag['#text'] == '1'
 def test_encode(self):
     element = PostBodyRaw(value='1', encode=True)
     rendered_doc = tag_wrapper(element.to_xml(), 'result')
     parsed_doc = xmltodict.parse(rendered_doc)
     assert parsed_doc['result']['elementProp']['boolProp'][
         '#text'] == 'true'
 def test_positive(self):
     PostBodyRaw(value='1', encode=True)
 def test_type_check1(self):
     with pytest.raises(TypeError):
         PostBodyRaw(value='1', encode=1)
 def test_positive(self):
     PostBodyRaw(value='1')
 def test_positive(self):
     PostBodyRaw(value='1', metadata='1')
 def test_type_check(self):
     with pytest.raises(TypeError):
         PostBodyRaw(value='1', metadata=1)