Beispiel #1
0
def test_display_name_to_value_attr():
    assert Action.delete(display_name='foo').bind(request=None).__html__() == '<button accesskey="s" name="-">foo</button>'
Beispiel #2
0
def test_delete_action():
    assert Action.delete().bind(request=None).__html__() == '<button accesskey="s" name="-">Submit</button>'
Beispiel #3
0
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">'
Beispiel #4
0
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">'
Beispiel #5
0
def test_delete_action():
    assert Action.delete().bind(request=None).__html__(
    ) == '<input accesskey="s" name="-" type="submit" value="Submit">'