Пример #1
0
    def test_service_description(self):
        self.assertEqual(scscp.get_service_description(),
                             OMApplication(
                                 OMSymbol('get_service_description', 'scscp2', id=None, cdbase=None),
                                 [], id=None, cdbase=None))

        self.assertEqual(scscp.service_description('Hello', 'world', '!'),
                             OMApplication(
                                 OMSymbol('service_description', 'scscp2', id=None, cdbase=None),
                                 [OMString('Hello', id=None), OMString('world', id=None),
                                      OMString('!', id=None)],
                                 id=None, cdbase=None))
Пример #2
0
    def test_service_description(self):
        self.assertEqual(
            scscp.get_service_description(),
            OMApplication(OMSymbol('get_service_description',
                                   'scscp2',
                                   id=None,
                                   cdbase=None), [],
                          id=None,
                          cdbase=None))

        self.assertEqual(
            scscp.service_description('Hello', 'world'),
            OMApplication(
                OMSymbol('service_description', 'scscp2', id=None,
                         cdbase=None),
                [OMString('Hello', id=None),
                 OMString('world', id=None)],
                id=None,
                cdbase=None))
Пример #3
0
 def get_service_description(self, data):
     return scscp.service_description(self.server.description)
Пример #4
0
 def get_service_description(self, data):
     return scscp.service_description(self.server.name.decode(),
                                      self.server.version.decode(),
                                      self.server.description)
Пример #5
0
 def get_service_description(self, data):
     return scscp.service_description(self.server.description)
Пример #6
0
 def get_service_description(self, data):
     return scscp.service_description(self.server.name.decode(),
                                          self.server.version.decode(),
                                          self.server.description)