#!/usr/bin/env python
#-*- coding:utf-8 -*-
#
import unittest
from bes.match.matcher_re import matcher_re

class Testmatcher_re(unittest.TestCase):

  def test_re_matcher_case(self):
    m = matcher_re('^.*something.*$', ignore_case = True)
    self.assertTrue( m.match('SOMETHING') )
    self.assertTrue( m.match('fooSOMETHING') )
    self.assertTrue( m.match('SOMETHINGbar') )
    self.assertFalse( m.match('SOMETHIN') )

  def test_re_matcher_case(self):
    m = matcher_re('^.*something.*$', ignore_case = True)
    self.assertTrue( m.match('SOMETHING') )
    self.assertTrue( m.match('fooSOMETHING') )
    self.assertTrue( m.match('SOMETHINGbar') )
    self.assertFalse( m.match('SOMETHIN') )


if __name__ == "__main__":
  unittest.main()

b68679bb00d32dbb1a565a73975bfb0e41775b20
<mask token>


class Testmatcher_re(unittest.TestCase):
    <mask token>

    def test_re_matcher_case(self):
        m = matcher_re('^.*something.*$', ignore_case=True)
        self.assertTrue(m.match('SOMETHING'))
        self.assertTrue(m.match('fooSOMETHING'))
        self.assertTrue(m.match('SOMETHINGbar'))
        self.assertFalse(m.match('SOMETHIN'))


<mask token>

<mask token>


class Testmatcher_re(unittest.TestCase):

    def test_re_matcher_case(self):
        m = matcher_re('^.*something.*$', ignore_case=True)
        self.assertTrue(m.match('SOMETHING'))
        self.assertTrue(m.match('fooSOMETHING'))
        self.assertTrue(m.match('SOMETHINGbar'))
        self.assertFalse(m.match('SOMETHIN'))

    def test_re_matcher_case(self):
        m = matcher_re('^.*something.*$', ignore_case=True)
        self.assertTrue(m.match('SOMETHING'))
        self.assertTrue(m.match('fooSOMETHING'))
        self.assertTrue(m.match('SOMETHINGbar'))
        self.assertFalse(m.match('SOMETHIN'))


<mask token>

<mask token>


class Testmatcher_re(unittest.TestCase):

    def test_re_matcher_case(self):
        m = matcher_re('^.*something.*$', ignore_case=True)
        self.assertTrue(m.match('SOMETHING'))
        self.assertTrue(m.match('fooSOMETHING'))
        self.assertTrue(m.match('SOMETHINGbar'))
        self.assertFalse(m.match('SOMETHIN'))

    def test_re_matcher_case(self):
        m = matcher_re('^.*something.*$', ignore_case=True)
        self.assertTrue(m.match('SOMETHING'))
        self.assertTrue(m.match('fooSOMETHING'))
        self.assertTrue(m.match('SOMETHINGbar'))
        self.assertFalse(m.match('SOMETHIN'))


if __name__ == '__main__':
    unittest.main()

import unittest
from bes.match.matcher_re import matcher_re


class Testmatcher_re(unittest.TestCase):

    def test_re_matcher_case(self):
        m = matcher_re('^.*something.*$', ignore_case=True)
        self.assertTrue(m.match('SOMETHING'))
        self.assertTrue(m.match('fooSOMETHING'))
        self.assertTrue(m.match('SOMETHINGbar'))
        self.assertFalse(m.match('SOMETHIN'))

    def test_re_matcher_case(self):
        m = matcher_re('^.*something.*$', ignore_case=True)
        self.assertTrue(m.match('SOMETHING'))
        self.assertTrue(m.match('fooSOMETHING'))
        self.assertTrue(m.match('SOMETHINGbar'))
        self.assertFalse(m.match('SOMETHIN'))


if __name__ == '__main__':
    unittest.main()

#!/usr/bin/env python
#-*- coding:utf-8 -*-
#
import unittest
from bes.match.matcher_re import matcher_re

class Testmatcher_re(unittest.TestCase):

  def test_re_matcher_case(self):
    m = matcher_re('^.*something.*$', ignore_case = True)
    self.assertTrue( m.match('SOMETHING') )
    self.assertTrue( m.match('fooSOMETHING') )
    self.assertTrue( m.match('SOMETHINGbar') )
    self.assertFalse( m.match('SOMETHIN') )

  def test_re_matcher_case(self):
    m = matcher_re('^.*something.*$', ignore_case = True)
    self.assertTrue( m.match('SOMETHING') )
    self.assertTrue( m.match('fooSOMETHING') )
    self.assertTrue( m.match('SOMETHINGbar') )
    self.assertFalse( m.match('SOMETHIN') )


if __name__ == "__main__":
  unittest.main()
