def test_display_name_to_value_attr(): assert Action.delete(display_name='foo').bind(request=None).__html__() == '<button accesskey="s" name="-">foo</button>'
def test_delete_action(): assert Action.delete().bind(request=None).__html__() == '<button accesskey="s" name="-">Submit</button>'
def test_display_name_to_value_attr(): assert Action.delete(display_name='foo').bind(request=None).__html__( ) == '<input accesskey="s" name="-" type="submit" value="foo">'
def test_display_name_to_value_attr_but_attr_overrides(): assert Action.delete( display_name='foo', attrs__value='bar').bind(request=None).__html__( ) == '<input accesskey="s" name="-" type="submit" value="bar">'
def test_delete_action(): assert Action.delete().bind(request=None).__html__( ) == '<input accesskey="s" name="-" type="submit" value="Submit">'