コード例 #1
0
 def testUrls(self):
     profile_robot = robot_abstract.Robot(
         'Testy',
         image_url='http://example.com/image.png',
         profile_url='http://example.com/profile.xml')
     expected = (
         '<?xml version="1.0"?>\n'
         '<w:robot xmlns:w="http://wave.google.com/extensions/robots/1.0">\n'
         '<w:capabilities>\n</w:capabilities>\n'
         '<w:profile name="Testy"'
         ' imageurl="http://example.com/image.png"'
         ' profileurl="http://example.com/profile.xml"/>\n'
         '</w:robot>\n')
     xml = profile_robot.GetCapabilitiesXml()
     self.assertStringsEqual(expected, xml)
コード例 #2
0
 def setUp(self):
     self.robot = robot_abstract.Robot('Testy')
コード例 #3
0
 def setUp(self):
     self.robot = robot_abstract.Robot('listener', '1')