Metadata-Version: 1.0
Name: soup-helpers
Version: 0.0.7
Summary: A simple set of BeautifulSoup4 unit test helpers
Home-page: https://github.com/bigmassa/soup_helpers
Author: Stuart George
Author-email: stuart.bigmassa@gmail.com
License: MIT
Description: Soup Helpers
        ------------
        
        .. image:: https://circleci.com/gh/bigmassa/soup_helpers.svg?style=svg
            :target: https://circleci.com/gh/bigmassa/soup_helpers
            
        Usage
        
            >>> import soup_helpers as sh
            >>> content = '<head><title>My Title</title></head>'
            >>> sh.assertPageTitleEquals(content, title='My Title')
        
        Misc Methods
        
            >>> assertLinkWithTextExists(content, url='http://www.example.com', text='My Link')
        
            >>> assertPageTitleEquals(content, title='My Title')
        
            >>> assertTagWithTextExists(content, tag='p', text='some text')
        
        
        Form Methods
        
            >>> assertFormFieldExists(content, tag='input', field_name='my_field')
            >>> assertFormFieldExists(content, tag='select', field_name='my_field')
            >>> assertFormFieldExists(content, tag='textarea', field_name='my_field')
        
            >>> assertInputValueEquals(content, field_name='my_field', value='my value')
            >>> assertInputValueEquals(content, field_name='my_field', value=None)
        
            >>> assertSelectHasOptions(content, field_name='my_field', options_tuple=('One', 'Two'))
        
            >>> assertSelectHasSelectedOption(content, field_name='my_field', text='my selected text')
        
            >>> assertTextAreaContainsText(content, field_name='my_field', text='some textarea text')
        
Platform: UNKNOWN
