Ejemplo n.º 1
0
def test_render_button():
    submit = Action.button(_name='do_it').bind()
    assert_renders(
        submit,
        '''
       <button> Do it </button>
    ''',
    )
Ejemplo n.º 2
0
 class Meta:
     actions = dict(
         create=Action.button(tag='a', attrs__href='create'),
         logout=Action.button(tag='a', attrs__href='/logout/'),
     )