[Telepathy-commits] [telepathy-gabble/master] steal constants.py from Salut

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Jan 13 07:11:56 PST 2009


---
 tests/twisted/Makefile.am  |    1 +
 tests/twisted/constants.py |   22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 tests/twisted/constants.py

diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am
index 46ba5fc..55a2366 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -111,6 +111,7 @@ check-twisted:
 
 EXTRA_DIST = \
 	$(TWISTED_TESTS) \
+	constants.py \
 	gabbletest.py \
 	servicetest.py \
 	jingle/jingletest.py \
diff --git a/tests/twisted/constants.py b/tests/twisted/constants.py
new file mode 100644
index 0000000..6b3cf6e
--- /dev/null
+++ b/tests/twisted/constants.py
@@ -0,0 +1,22 @@
+"""
+Some handy constants for other tests to share and enjoy.
+"""
+
+HT_CONTACT = 1
+
+CHANNEL = "org.freedesktop.Telepathy.Channel"
+CHANNEL_TYPE_TUBES = CHANNEL + ".Type.Tubes"
+CHANNEL_TYPE_STREAM_TUBE = CHANNEL + ".Type.StreamTube.DRAFT"
+
+CHANNEL_TYPE = CHANNEL + '.ChannelType'
+TARGET_HANDLE_TYPE = CHANNEL + '.TargetHandleType'
+TARGET_HANDLE = CHANNEL + '.TargetHandle'
+
+CONN = "org.freedesktop.Telepathy.Connection"
+CONN_IFACE_REQUESTS = CONN + '.Interface.Requests'
+
+ERRORS = 'org.freedesktop.Telepathy.Errors'
+INVALID_ARGUMENT = ERRORS + '.InvalidArgument'
+NOT_IMPLEMENTED = ERRORS + '.NotImplemented'
+NOT_AVAILABLE = ERRORS + '.NotAvailable'
+
-- 
1.5.6.5




More information about the Telepathy-commits mailing list