# Path: moduleframework/module_framework.py
# PROFILE = None
# def skipTestIf(value, text="Test not intended for this module profile"):


from moduleframework import module_framework
# he Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Authors: Lukas Zachar <lzachar@redhat.com>
#



def before_scenario(context, scenario):
    context.backend.setUp()


def after_scenario(context, scenario):
    try:
        context.socket.close()
    except BaseException:
        pass
    context.backend.tearDown()


def before_all(context):

# Path: moduleframework/module_framework.py
# PROFILE = None
# def skipTestIf(value, text="Test not intended for this module profile"):


# Path: examples/memcached-behave/environment.py
from moduleframework import module_framework

# he Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Authors: Lukas Zachar <lzachar@redhat.com>
#



def before_scenario(context, scenario):
    context.backend.setUp()


def after_scenario(context, scenario):
    try:
        context.socket.close()
    except BaseException:
        pass
    context.backend.tearDown()


def before_all(context):

    context.backend = module_framework.get_correct_backend()