def test_init
@entry.init('Foo')
assert_equal(1, @name_tag_call)
assert_equal(1, @name_list_call)
assert_equal('Foo', @attrs['document'])
assert_equal(1, @arg_info_alist_call)
assert_equal('Foo', @arg_info_alist_name)
assert_equal({ 'str_arg' => 'hi',
'passwd_arg' => nil,
'txt_arg' => '<html>Hello world.</html>',
'num_arg' => 0,
'reg_arg' => /foo/,
'bool_arg' => true,
'sel_arg' => 'foo',
'radio_arg' => 'foo',
'chk_arg' => {
'foo'=> false,
'bar' => false,
'baz' => false
}
}, @attrs['arguments'])
end