Metadata-Version: 1.1
Name: bemo
Version: 0.0.2
Summary: It's simple way to mock your back-end from webdriver UI tests
Home-page: https://github.com/bemo-project/bemo-python
Author: Nikita Grishko
Author-email: gr1n@protonmail.com
License: MIT
Download-URL: https://pypi.python.org/pypi/bemo/
Description: bemo |Requirements Status| |Build Status| |Code Health| |PyPI| |Supported Python versions|
        ==========================================================================================
        
        Bemo(back-end mock) - it's simple way to mock your back-end from
        webdriver UI tests.
        
        Installation
        ------------
        
        Install ``bemo`` using `pip <http://www.pip-installer.org/>`__:
        
        ::
        
            $ pip install bemo
        
        ...or install ``bemo`` running command below if you want to use Python
        2.7:
        
        ::
        
            $ pip install bemo[py2x]
        
        Enjoy!
        
        Usage
        -----
        
        ::
        
            from selenium import webdriver
            from selene.conditions import text
            from selene.tools import set_driver, visit, s
        
            import bemo
        
        
            wd = webdriver.Firefox()
            set_driver(wd)
        
            visit('https://accounts.google.com/SignUp')
        
            with bemo.Session(wd=wd) as session:
                handler = session.handle('InputValidator', body={
                    'input01': {
                        'Valid': 'false',
                        'ErrorMessage': 'Error!',
                        'Errors': {
                            'GmailAddress': 'It work.',
                        },
                        'ErrorData': [],
                    },
                    'Locale': 'ru',
                })
                session.inject()
        
                s('#GmailAddress').set('John Snow')
                s('#submitbutton').click()
        
                s('#errormsg_0_GmailAddress').should_have(text('It work.'))
        
                handler.assert_called_once_with({
                    'method': 'POST',
                    'url': 'InputValidator?resource=SignUp',
                })
        
        Testing
        -------
        
        Just run ``tox`` to test package.
        
        License
        -------
        
        *bemo* is licensed under the MIT license. See the license file for
        details.
        
        .. |Requirements Status| image:: https://requires.io/github/bemo-project/bemo-python/requirements.svg?branch=master
           :target: https://requires.io/github/bemo-project/bemo-python/requirements/?branch=master
        .. |Build Status| image:: https://travis-ci.org/bemo-project/bemo-python.svg?branch=master
           :target: https://travis-ci.org/bemo-project/bemo-python
        .. |Code Health| image:: https://landscape.io/github/bemo-project/bemo-python/master/landscape.svg?style=flat
           :target: https://landscape.io/github/bemo-project/bemo-python/master
        .. |PyPI| image:: https://img.shields.io/pypi/v/bemo.svg
           :target: https://pypi.python.org/pypi/bemo
        .. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/bemo.svg
           :target: https://pypi.python.org/pypi/bemo
        
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries :: Python Modules
