blob: 1781c23b0252750095ed79f8e28b001fdc1a984a (
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 2014 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Testing ccs2coro filter(s)"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"
from os.path import dirname, join
from _common import CommonFilterTestCase
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'))
|