File: xml_test.py

package info (click to toggle)
kiwi 10.2.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 7,664 kB
  • sloc: python: 69,179; sh: 4,228; xml: 3,383; ansic: 391; makefile: 353
file content (20 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pytest import raises

from kiwi.markup.xml import MarkupXML

from kiwi.exceptions import KiwiMarkupConversionError


class TestMarkupXML:
    def setup(self):
        self.markup = MarkupXML('../data/example_config.xml')

    def setup_method(self, cls):
        self.setup()

    def test_get_xml_description(self):
        assert 'xslt-' in self.markup.get_xml_description()

    def test_get_yaml_description(self):
        with raises(KiwiMarkupConversionError):
            self.markup.get_yaml_description()