<s> import pytest <EOL> from django . core . exceptions import ValidationError <EOL> from oscar . apps . catalogue import models <EOL> def test_product_attributes_can_contain_underscores ( ) : <EOL> attr = models . ProductAttribute ( name = "<STR_LIT:A>" , code = "<STR_LIT>" ) <EOL> attr . full_clean ( ) <EOL> def test_product_attributes_cant_contain_hyphens ( ) : <EOL> attr = models . ProductAttribute ( name = "<STR_LIT:A>" , code = "<STR_LIT>" ) <EOL> with pytest . raises ( ValidationError ) : <EOL> attr . full_clean ( ) <EOL> def test_product_attributes_cant_be_python_keywords ( ) : <EOL> attr = models . ProductAttribute ( name = "<STR_LIT:A>" , code = "<STR_LIT>" ) <EOL> with pytest . raises ( ValidationError ) : <EOL> attr . full_clean ( ) </s>
