debug messages

This commit is contained in:
Romain Bignon 2010-04-07 14:51:55 +02:00
commit 471844cda0
3 changed files with 4 additions and 9 deletions

View file

@ -57,16 +57,10 @@ class Cragr(Browser):
assert isinstance(self.password, (str,unicode))
self.is_logging = True
print 'kikoo'
if not self.is_on_page(pages.LoginPage):
self.home()
print '1'
try:
self.page.login(self.username, self.password)
except Exception, e:
print type(e), e
raise
self.page.login(self.username, self.password)
self.is_logging = False
if not self.is_logged():