

def setUp(self):
    self.site = Site.objects.get_current()
    sizes = OptionGroup.objects.create(name='sizes', sort_order=1, site=colors.site)
    option_small = Option.objects.create(option_group=sizes, name='Small', value='small', sort_order=1)
    option_large = Option.objects.create(option_group=sizes, name='Large', value='large', sort_order=2, price_change=1)
    colors = OptionGroup.objects.create(name='colors', sort_order=2, site=self.site)
    option_black = Option.objects.create(option_group=colors, name='Black', value='black', sort_order=1)
    option_white = Option.objects.create(option_group=colors, name='White', value='white', sort_order=2, price_change=3)
    option_white.price_change = 5
    option_white.sort_order = 2
    option_white.save()
    self.sizes = sizes
    self.option_small = option_small
    self.option_large = option_large
    self.colors = colors
    self.option_black = option_black
    self.option_white = option_white

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py OptionGroupTest.setUp/VarMisuse@40/47 `self`->`colors`