Example #1
0
def test_available_types():
    cell = Cell()
    types = cell.get_allowed_types()
    for type in types:
        cell = Cell(c_type=type)
        assert cell._type() == type
Example #2
0
def test_no_constructor_given2():
    cell = Cell(c_type=None)
    assert cell._type() == 'X'
Example #3
0
def test_with_correct_type2():
    cell = Cell(c_type='_')
    assert cell._type() == '_'
Example #4
0
def test_no_constructor_given():
    cell = Cell()
    assert cell._type() == 'X'