import numpy
import pytest
from life.display import DisplayClass


@pytest.fixture
def grid():
  grid = numpy.zeros((3, 3), dtype=numpy.int)
  grid[1][1] = 1
  return grid


def test_show(grid, capsys):
  DisplayClass().show(grid)
  out, _ = capsys.readouterr()
  assert out == ' . . .\n . O .\n . . .\n\n', 'grid display failed'

@@ -213,20 +213,23 @@
 Class().
-show
+display
 (grid)%0A 

fix display class test