• R/O
  • SSH
  • HTTPS

pyhabu: Commit


Commit MetaInfo

Revision86 (tree)
Time2007-10-09 23:30:15
Authorliris

Log Message

pymixi test case

Change Summary

Incremental Difference

--- trunk/habu/subscription/test.cfg.in (nonexistent)
+++ trunk/habu/subscription/test.cfg.in (revision 86)
@@ -0,0 +1,5 @@
1+[mixi]
2+userid:mixi_mail_address_for_test
3+password:mixi_password_for_test
4+
5+
--- trunk/habu/subscription/test_subscription.py (nonexistent)
+++ trunk/habu/subscription/test_subscription.py (revision 86)
@@ -0,0 +1,24 @@
1+from twisted.trial.unittest import TestCase
2+
3+import os.path, ConfigParser
4+
5+import mixidiary
6+
7+
8+class MixiTest(TestCase):
9+ def setUp(self):
10+ cur_dir = os.path.dirname(__file__)
11+ config_file = os.path.join(cur_dir, "test.cfg")
12+ config = ConfigParser.ConfigParser()
13+ config.read(config_file)
14+
15+ self.userid = config.get("mixi", "userid")
16+ self.password= config.get("mixi", "password")
17+
18+ def testMixi(self):
19+ obj = mixidiary.MixiRss({"userid": self.userid,
20+ "password": self.password},
21+ None)
22+ deferred = obj.execute(None)
23+ return deferred
24+
Show on old repository browser