def test_should_initialize_correctly(self): effect = Effect.empty(8) assert 8 == len(effect)
def test_should_return_number_of_specific_components_2(self): effect = Effect.empty(8) effect[1] = '1' assert 1 == effect.number_of_specified_elements
def test_should_set_effect_with_non_string_char(self): effect = Effect.empty(8) with pytest.raises(TypeError): effect[0] = 1
def test_should_return_number_of_specific_components_1(self): effect = Effect.empty(8) assert 0 == effect.number_of_specified_elements