~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to py/test/Ice/operations/Twoways.py

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martín
  • Date: 2011-06-25 19:44:26 UTC
  • mfrom: (6.1.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110625194426-9fip3u3hlwheohvl
Tags: 3.4.2-1
New upstream release (Closes: #631456).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# **********************************************************************
2
2
#
3
 
# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
 
3
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4
4
#
5
5
# This copy of Ice is licensed to you under the terms described in the
6
6
# ICE_LICENSE file included in this distribution.
15
15
 
16
16
def twoways(communicator, p):
17
17
    #
 
18
    # ice_ping
 
19
    #
 
20
    p.ice_ping()
 
21
 
 
22
    #
 
23
    # ice_isA
 
24
    #
 
25
    test(p.ice_isA(Test.MyClass.ice_staticId()))
 
26
 
 
27
    #
 
28
    # ice_ids
 
29
    #
 
30
    ids = p.ice_ids()
 
31
    test(len(ids) == 3)
 
32
    test(ids[0] == "::Ice::Object")
 
33
    test(ids[1] == "::Test::MyClass")
 
34
    test(ids[2] == "::Test::MyDerivedClass")
 
35
 
 
36
    #
 
37
    # ice_id
 
38
    #
 
39
    test(p.ice_id() == Test.MyDerivedClass.ice_staticId())
 
40
 
 
41
    #
18
42
    # opVoid
19
43
    #
20
44
    p.opVoid()
650
674
        ds.append(d);
651
675
    p.opDoubleMarshaling(d, ds);
652
676
 
 
677
    #
 
678
    # opIdempotent
 
679
    #
 
680
    p.opIdempotent()
 
681
 
 
682
    #
 
683
    # opNonmutating
 
684
    #
 
685
    p.opNonmutating()