~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to pyopenchange/tests/ocpf_test.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
import openchange.mapi as mapi
11
11
from openchange.ocpf import Ocpf
12
12
 
13
 
filename = os.getcwd() + "/../../libocpf/examples/sample_appointment.ocpf"
 
13
filename = os.getcwd() + "/../../libocpf/examples/sample_appointment.ocpf";
14
14
ctx = Ocpf(filename, ocpf.OCPF_FLAGS_READ)
15
15
 
16
16
ret = ctx.parse()
37
37
print 
38
38
print "Writing ocpf_test.ocpf file:"
39
39
print "============================"
40
 
filename = os.getcwd() + "/ocpf_test.ocpf"
 
40
filename = os.getcwd() + "/ocpf_test.ocpf";
41
41
ctx2 = Ocpf(filename, ocpf.OCPF_FLAGS_CREATE)
42
42
# dummy test to ensure we can set an ocpf parameter properly
43
43
ret = ctx2.write_init(0x12345678)