def test_compound_vector_invalid_values(size, value): var = CompoundVectorVariable('v', 'integer', size, None) with pytest.raises(ValueError): var.format_value(value)
def test_compound_vector(size, value, expected): var = CompoundVectorVariable('v', 'integer', size, value) assert expected == var.format_value(value)