blob: bedc8997793f4207a077bacf6af86ab6932738d7 (
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 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('ccs2flatccs', ('file', testfile))
out_obj = self.flt_mgr('ccs2needlexml', ('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')
|