Exemple #1
0
 def test_authname_001 (self):
     xrn=PlXrn(xrn='ple.inria.omftest',type='slice')
     self.assertEqual(xrn.pl_authname(),'inria')
Exemple #2
0
 def test_login_base_001 (self):
     xrn=PlXrn(xrn='ple.inria.omftest',type='slice')
     self.assertEqual(xrn.pl_login_base(),'inria')
Exemple #3
0
 def test_slice001  (self):
     xrn=PlXrn (auth="ple",slicename="inria_omftest")
     self.assertEqual (xrn.get_hrn_type(), ("ple.inria.omftest",'slice'))
Exemple #4
0
 def test_person002 (self):
     xrn=PlXrn (auth="ple.inria",email="*****@*****.**")
     self.assertEqual (xrn.get_hrn_type(), ("ple.inria.first_last",'person'))
Exemple #5
0
 def test_host002 (self):
     xrn=PlXrn (auth="ple\\.inria",hostname="onelab09.pl.sophia.inria.fr")
     self.assertEqual (xrn.get_hrn_type(), ("ple\\.inria.onelab09\\.pl\\.sophia\\.inria\\.fr",'node'))