class_docstr: test layout templates
docstr: test whether the extra layout options of the template class are
  passed down to Layout object
docstr_tok: ["test","whether","the","extra","layout","options","of","the","template","class","are","passed","down","to","Layout","object"]
code: def test_pass_layout_options(self):  # pylint: disable=no-self-use
      """test whether the extra layout options of the template class are
      passed down to Layout object"""
  
      button1 = widgets.Button()
      button2 = widgets.Button()
      button3 = widgets.Button()
      button4 = widgets.Button()
  
      box = widgets.TwoByTwoLayout(
          top_left=button1,
          top_right=button2,
          bottom_left=button3,
          bottom_right=button4,
          grid_gap="10px",
          justify_content="center",
          align_items="center",
      )
  
      assert box.layout.grid_gap == "10px"
      assert box.layout.justify_content == "center"
      assert box.layout.align_items == "center"
  
      # we still should be able to pass them through layout
      layout = widgets.Layout(
          grid_gap="10px",
          justify_content="center",
          align_items="center",
      )
      box = widgets.TwoByTwoLayout(
          top_left=button1,
          top_right=button2,
          bottom_left=button3,
          bottom_right=button4,
          layout=layout,
      )
  
      assert box.layout.grid_gap == "10px"
      assert box.layout.justify_content == "center"
      assert box.layout.align_items == "center"
  
      # values passed directly in the constructor should overwrite layout options
      layout = widgets.Layout(
          grid_gap="10px",
          justify_content="center",
          align_items="center",
      )
      box = widgets.TwoByTwoLayout(
          top_left=button1,
          top_right=button2,
          bottom_left=button3,
          bottom_right=button4,
          layout=layout,
          grid_gap="30px",
      )
  
      assert box.layout.grid_gap == "30px"
      assert box.layout.justify_content == "center"
      assert box.layout.align_items == "center"
  
imports: from unittest import TestCase
  from unittest import mock
  import pytest
  import traitlets
  import ipywidgets
  from ipywidgets.widgets.widget_templates import LayoutProperties
label_desc: Use image node_id 3 for calling the TestTwoByTwoLayout obj's underlying member method code with example usage: obj.test_pass_layout_options() without return types