summaryrefslogtreecommitdiffstats
path: root/tests/ccs2coroxml.py
blob: 0a14585d4595a211ccbd85fb2bb50e88c6f287f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: UTF-8 -*-
# Copyright 2015 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Testing ccs2coroxml filter(s)"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"

from os.path import join, dirname as d; execfile(join(d((__file__)), '_com'))

from os.path import dirname, join


class Main(CommonFilterTestCase):
    def test01(self):
        # using ./filled.conf
        testfile = join(dirname(__file__), 'filled.conf')
        out_obj = self.flt_mgr('ccs2ccsflat', ('file', testfile))
        out_obj = self.flt_mgr('ccs2needlexml', ('etree', out_obj('etree')),
                               validator_specs={'':''})
        print out_obj('bytestring')


from os.path import join, dirname as d; execfile(join(d(d(__file__)), '_gone'))