source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/authz/xacml/test_xacml.py @ 6734

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/authz/xacml/test_xacml.py@6734
Revision 6734, 532 bytes checked in by pjkersha, 10 years ago (diff)

Added XACML Target ElementTree based parser.

Line 
1'''
2Created on 16 Mar 2010
3
4@author: pjkersha
5'''
6import unittest
7from os import path
8
9from ndg.security.common.authz.xacml.parsers.etree.policyreader import \
10    PolicyReader
11
12class XACMLTestCase(unittest.TestCase):
13    THIS_DIR = path.dirname(__file__)
14    XACML_FILENAME = "rule1.xml"
15    XACML_FILEPATH = path.join(THIS_DIR, XACML_FILENAME)
16   
17    def test01ETreeParsePolicy(self):
18        policy = PolicyReader.parse(XACMLTestCase.XACML_FILEPATH)
19        self.assert_(policy)
20
21
22if __name__ == "__main__":
23    unittest.main()
Note: See TracBrowser for help on using the repository browser.