def test_hrn006(self):
self.__hrn("plc.princeton.tmack", 'user',
"urn:publicid:IDN+plc:princeton+user+tmack" )
- def test_hrn007(self):
- # not providing a type is currently not supporte
- self.__hrn("fake-pi1@onelab.eu",None,
- None)
+# def test_hrn007(self):
+# # not providing a type is currently not supporte
+# self.__hrn("fake-pi1@onelab.eu",None,
+# None)
def test_hrn008(self):
self.__hrn("plc.princeton.planetlab1", 'node',
"urn:publicid:IDN+plc:princeton+node+planetlab1" )
def test_hrn010(self):
self.__hrn("plc.vini.site", 'authority',
"urn:publicid:IDN+plc:vini:site+authority+sa" )
-
+
+ # this one is a bit off limits but it's used in some places
+ # like .e.g when running sfi.py resources
+ def test_void(self):
+ void=Xrn(xrn='',type=None)
+ expected='urn:publicid:IDN++'
+ self.assertEqual(void.get_hrn(),'')
+ self.assertEqual(void.get_type(),None)
+ self.assertEqual(void.get_urn(),expected)
+ loop=Xrn(xrn=expected)
+ self.assertEqual(loop.get_hrn(),'')
+ # xxx - this is not quite right as the first object has type None
+ self.assertEqual(loop.get_type(),'')
def test_host001 (self):