Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorcgueret <christophe.gueret@gmail.com>2012-04-25 19:55:39 (GMT)
committer cgueret <christophe.gueret@gmail.com>2012-04-25 19:55:39 (GMT)
commit6df433ce517fe7bfcb35a62ddcfbe3a2a6e49065 (patch)
tree477880e20f696f027dec53ff850eef16b8644321 /common
parent32e34be880ef49c639aaffa8795ee777032d033b (diff)
Test for neighbors
Diffstat (limited to 'common')
-rw-r--r--common/src/test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/common/src/test.py b/common/src/test.py
new file mode 100644
index 0000000..49899b1
--- /dev/null
+++ b/common/src/test.py
@@ -0,0 +1,17 @@
+'''
+Created on 25 Apr 2012
+
+@author: cgueret
+'''
+
+import dbus.mainloop.glib
+from jarabe.model import neighborhood
+from jarabe.model import friends
+
+if __name__ == '__main__':
+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
+ m = friends.get_model()
+ for f in m:
+ print f
+ n = neighborhood.get_model()
+ print n.get_buddies() \ No newline at end of file