source: TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_xacml.py @ 6744

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_xacml.py@6744
Revision 6744, 802 bytes checked in by pjkersha, 10 years ago (diff)

Added core package

Line 
1"""NDG XACML unit test package
2
3NERC DataGrid Project
4"""
5__author__ = "P J Kershaw"
6__date__ = "16/03/10"
7__copyright__ = "(C) 2010 Science and Technology Facilities Council"
8__contact__ = "Philip.Kershaw@stfc.ac.uk"
9__license__ = "BSD - see LICENSE file in top-level directory"
10__contact__ = "Philip.Kershaw@stfc.ac.uk"
11__revision__ = "$Id: $"
12import unittest
13from os import path
14
15from ndg.xacml.parsers.etree.policyreader import PolicyReader
16
17
18class XACMLTestCase(unittest.TestCase):
19    THIS_DIR = path.dirname(__file__)
20    XACML_FILENAME = "rule1.xml"
21    XACML_FILEPATH = path.join(THIS_DIR, XACML_FILENAME)
22   
23    def test01ETreeParsePolicy(self):
24        policy = PolicyReader.parse(XACMLTestCase.XACML_FILEPATH)
25        self.assert_(policy)
26
27
28if __name__ == "__main__":
29    unittest.main()
Note: See TracBrowser for help on using the repository browser.