summaryrefslogtreecommitdiffstats
path: root/tests/ccs2coroxml.py
blob: a307eebe9bbbc1838a94fceea9c0f1c2adf1a74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- coding: UTF-8 -*-
# Copyright 2013 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2 (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Testing filter manager"""
__author__ = "Jan Pokorný <jpokorny at redhat 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('ccs2coroxml', ('etree', out_obj('etree')))
        #out_obj = self.flt_mgr('ccs_obfuscate_credentials', ('etree', out_obj('etree')))
        #out_obj = self.flt_mgr('ccs_obfuscate_identifiers', ('etree', out_obj('etree')))
        print out_obj('bytestring')