Revision: 12
http://pykol.svn.sourceforge.net/pykol/?rev=12&view=rev
Author: misza13
Date: 2007-04-07 13:54:13 -0700 (Sat, 07 Apr 2007)
Log Message:
-----------
Adding mall search testing
Modified Paths:
--------------
test.py
Modified: test.py
===================================================================
--- test.py 2007-04-07 20:52:15 UTC (rev 11)
+++ test.py 2007-04-07 20:54:13 UTC (rev 12)
@@ -2,6 +2,7 @@
import sys, random
from kolsite import KoLSite
+from mall import Mall
def main():
@@ -14,12 +15,15 @@
print 'Nick or password not specified in config!'
return
- Site = KoLSite('www%s.kingdomofloathing.com' % random.choice('12345678'))
+ Site = KoLSite()
Site.doLogin(config['nick'],config['password'])
response, data = Site.getPage('main.html')
print response.status
print data
+ M = Mall(Site)
+ M.searchItem('tiny plastic sword')
+
if __name__ == '__main__':
main()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|