Ignore:
Timestamp:
25 May 2012, 01:24:10 (12 years ago)
Author:
uli
Message:

Regression test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_datacenter.py

    r8512 r8514  
    155155        self.assertEqual(result[-1], 'Msg 55\n')
    156156        return
     157
     158    def test_query_logfiles_regex_match_inner(self):
     159        # we also find lines that match at some inner part
     160        datacenter = DataCenter()
     161        self.fill_logfile()
     162        result = list(datacenter.queryLogfiles('myapp.log', 'sg 1\n'))
     163        self.assertEqual(len(result), 1)
     164        self.assertEqual(result[0], 'Msg 1\n')
     165        return
Note: See TracChangeset for help on using the changeset viewer.