Commits

Marcin Kasperski committed 46a662e

auto_logout, parsowanie idle

  • Participants
  • Parent commits e0894b2

Comments (0)

Files changed (1)

tests/test_parser.py

         # what's that? - offer accepted/declined/withdrawn/removed
         # TODO: grab sample data and make test
         raise SkipTest
+    def testAutoLogout(self):
+        (w,d) = info_parser.parse_fics_line(
+            '**** Auto-logout because you were idle more than 60 minutes. ****')
+        self.failUnlessEqual(w, 'auto_logout')
+        self.failUnlessEqual(d, None)
+
     def testIgnores(self):
         # TODO: move those to reply parsing and treat as they should be treated
         not_used_lines = [