class_docstr: Test Buffer Point/Line/Polygon with and without single_sided params
class_docstr_tok: ["Test","Buffer","Point\/Line\/Polygon","with","and","without","single_sided","params"]
code: def test_cap_style(self):
      g = geometry.LineString([[0, 0], [1, 0]])
      h = g.buffer(1, cap_style=BufferCapStyle.round)
      assert h == g.buffer(1, cap_style=CAP_STYLE.round)
      assert h == g.buffer(1, cap_style="round")
  
      h = g.buffer(1, cap_style=BufferCapStyle.flat)
      assert h == g.buffer(1, cap_style=CAP_STYLE.flat)
      assert h == g.buffer(1, cap_style="flat")
  
      h = g.buffer(1, cap_style=BufferCapStyle.square)
      assert h == g.buffer(1, cap_style=CAP_STYLE.square)
      assert h == g.buffer(1, cap_style="square")
  
imports: import unittest
  import pytest
  from shapely import geometry
  from shapely.constructive import BufferCapStyle, BufferJoinStyle
  from shapely.geometry.base import CAP_STYLE, JOIN_STYLE
label_desc: Use image node_id 10 for calling the BufferTests obj's underlying member method code with example usage: obj.test_cap_style() without return types