#!/usr/bin/env python

import os
import re

class FilterModule(object):

  def filters(self):
    return {
      "tests_task_valid": self.tests_task_valid,
      "tests_task_eq_setup": self.tests_task_eq_setup,
      "tests_task_eq_teardown": self.tests_task_eq_teardown,
      "tests_tasks_filename": self.tests_tasks_filename,
    }

  def tests_task_valid( self, input ):
    try:
      return input is not None and \
        ( self.tests_task_eq_setup(input) \
        or self.tests_task_eq_teardown(input) )
    except:
      return False

  def tests_task_eq_setup( self, input ):
    try:
      return input is not None and \
        re.match('^setup$',(str(input).strip()).lower())
    except:
      return False

  def tests_task_eq_teardown( self, input ):
    try:
      return input is not None and \
        re.match('^teardown$',(str(input).strip()).lower())
    except:
      return False

  def tests_tasks_filename( self, input ):
    try:
      if input is not None and self.tests_task_valid(input):
        return 'tests-%s.yml' % (str(input).strip()).lower()
      else:
        return None
    except:
      return None


2bae0e570a04b2482b2c0d75b2352d14a97c0d67
<mask token>


class FilterModule(object):

    def filters(self):
        return {'tests_task_valid': self.tests_task_valid,
            'tests_task_eq_setup': self.tests_task_eq_setup,
            'tests_task_eq_teardown': self.tests_task_eq_teardown,
            'tests_tasks_filename': self.tests_tasks_filename}
    <mask token>

    def tests_task_eq_setup(self, input):
        try:
            return input is not None and re.match('^setup$', str(input).
                strip().lower())
        except:
            return False

    def tests_task_eq_teardown(self, input):
        try:
            return input is not None and re.match('^teardown$', str(input).
                strip().lower())
        except:
            return False
    <mask token>

<mask token>


class FilterModule(object):

    def filters(self):
        return {'tests_task_valid': self.tests_task_valid,
            'tests_task_eq_setup': self.tests_task_eq_setup,
            'tests_task_eq_teardown': self.tests_task_eq_teardown,
            'tests_tasks_filename': self.tests_tasks_filename}
    <mask token>

    def tests_task_eq_setup(self, input):
        try:
            return input is not None and re.match('^setup$', str(input).
                strip().lower())
        except:
            return False

    def tests_task_eq_teardown(self, input):
        try:
            return input is not None and re.match('^teardown$', str(input).
                strip().lower())
        except:
            return False

    def tests_tasks_filename(self, input):
        try:
            if input is not None and self.tests_task_valid(input):
                return 'tests-%s.yml' % str(input).strip().lower()
            else:
                return None
        except:
            return None

<mask token>


class FilterModule(object):

    def filters(self):
        return {'tests_task_valid': self.tests_task_valid,
            'tests_task_eq_setup': self.tests_task_eq_setup,
            'tests_task_eq_teardown': self.tests_task_eq_teardown,
            'tests_tasks_filename': self.tests_tasks_filename}

    def tests_task_valid(self, input):
        try:
            return input is not None and (self.tests_task_eq_setup(input) or
                self.tests_task_eq_teardown(input))
        except:
            return False

    def tests_task_eq_setup(self, input):
        try:
            return input is not None and re.match('^setup$', str(input).
                strip().lower())
        except:
            return False

    def tests_task_eq_teardown(self, input):
        try:
            return input is not None and re.match('^teardown$', str(input).
                strip().lower())
        except:
            return False

    def tests_tasks_filename(self, input):
        try:
            if input is not None and self.tests_task_valid(input):
                return 'tests-%s.yml' % str(input).strip().lower()
            else:
                return None
        except:
            return None

import os
import re


class FilterModule(object):

    def filters(self):
        return {'tests_task_valid': self.tests_task_valid,
            'tests_task_eq_setup': self.tests_task_eq_setup,
            'tests_task_eq_teardown': self.tests_task_eq_teardown,
            'tests_tasks_filename': self.tests_tasks_filename}

    def tests_task_valid(self, input):
        try:
            return input is not None and (self.tests_task_eq_setup(input) or
                self.tests_task_eq_teardown(input))
        except:
            return False

    def tests_task_eq_setup(self, input):
        try:
            return input is not None and re.match('^setup$', str(input).
                strip().lower())
        except:
            return False

    def tests_task_eq_teardown(self, input):
        try:
            return input is not None and re.match('^teardown$', str(input).
                strip().lower())
        except:
            return False

    def tests_tasks_filename(self, input):
        try:
            if input is not None and self.tests_task_valid(input):
                return 'tests-%s.yml' % str(input).strip().lower()
            else:
                return None
        except:
            return None

#!/usr/bin/env python

import os
import re

class FilterModule(object):

  def filters(self):
    return {
      "tests_task_valid": self.tests_task_valid,
      "tests_task_eq_setup": self.tests_task_eq_setup,
      "tests_task_eq_teardown": self.tests_task_eq_teardown,
      "tests_tasks_filename": self.tests_tasks_filename,
    }

  def tests_task_valid( self, input ):
    try:
      return input is not None and \
        ( self.tests_task_eq_setup(input) \
        or self.tests_task_eq_teardown(input) )
    except:
      return False

  def tests_task_eq_setup( self, input ):
    try:
      return input is not None and \
        re.match('^setup$',(str(input).strip()).lower())
    except:
      return False

  def tests_task_eq_teardown( self, input ):
    try:
      return input is not None and \
        re.match('^teardown$',(str(input).strip()).lower())
    except:
      return False

  def tests_tasks_filename( self, input ):
    try:
      if input is not None and self.tests_task_valid(input):
        return 'tests-%s.yml' % (str(input).strip()).lower()
      else:
        return None
    except:
      return None

