def test_available_types(): cell = Cell() types = cell.get_allowed_types() for type in types: cell = Cell(c_type=type) assert cell._type() == type
def test_no_constructor_given2(): cell = Cell(c_type=None) assert cell._type() == 'X'
def test_with_correct_type2(): cell = Cell(c_type='_') assert cell._type() == '_'
def test_no_constructor_given(): cell = Cell() assert cell._type() == 'X'