Beispiel #1
0
 def test06_source_description(self):
     # up links used to point to the source description
     rc = ResourceContainer()
     # via convenience methods                                  
     self.assertEqual( rc.up, None )
     rc.up = "well-known"
     self.assertEqual( rc.up, "well-known" )
     rc.up = "well-known2"
     self.assertEqual( rc.up, "well-known2" )
     # via link
     link = rc.link("up")
     self.assertEqual( link['href'], "well-known2" )
     link['href'] = "wk3"
     self.assertEqual( rc.up, "wk3" )
 def test06_source_description(self):
     # up links used to point to the source description
     rc = ResourceContainer()
     # via convenience methods                                  
     self.assertEqual( rc.up, None )
     rc.up = "well-known"
     self.assertEqual( rc.up, "well-known" )
     rc.up = "well-known2"
     self.assertEqual( rc.up, "well-known2" )
     # via link
     link = rc.link("up")
     self.assertEqual( link['href'], "well-known2" )
     link['href'] = "wk3"
     self.assertEqual( rc.up, "wk3" )
Beispiel #3
0
 def test08_up(self):
     rc = ResourceContainer()
     # via convenience methods                                  
     self.assertEqual( rc.up, None )
     rc.up = "up_uri"
     self.assertEqual( rc.up, "up_uri" )
 def test08_up(self):
     rc = ResourceContainer()
     # via convenience methods                                  
     self.assertEqual( rc.up, None )
     rc.up = "up_uri"
     self.assertEqual( rc.up, "up_uri" )