Changeset 10518 for trunk/test
- Timestamp:
- 10/11/08 12:22:04 (6 weeks ago)
- Location:
- trunk/test
- Files:
-
- 2 modified
-
lib/mocks.py (modified) (1 diff)
-
test_misc_interface.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/lib/mocks.py
r10320 r10518 123 123 124 124 class MockSession(Mock): 125 def __init__(self, conn, jid, thread_id, type ):125 def __init__(self, conn, jid, thread_id, type_): 126 126 Mock.__init__(self) 127 127 128 128 self.conn = conn 129 129 self.jid = jid 130 self.type = type 130 self.type = type_ 131 131 self.thread_id = thread_id 132 132 -
trunk/test/test_misc_interface.py
r10318 r10518 16 16 17 17 def test_links_regexp_entire(self): 18 def assert_matches_all(str ):19 m = gajim.interface.basic_pattern_re.match(str )18 def assert_matches_all(str_): 19 m = gajim.interface.basic_pattern_re.match(str_) 20 20 21 21 # the match should equal the string 22 str_span = (0, len(str ))22 str_span = (0, len(str_)) 23 23 self.assertEqual(m.span(), str_span) 24 24
