# -*- 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ý " 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'))