def _create_mock_calendar(self): self.calendar = CalendarProduct(isbn='1234567890', number_of_pages=100) self.calendar.name = 'Calendar' self.calendar.slug = 'mock-calendar' self.calendar.short_description = 'test' self.calendar.long_description = 'test' self.calendar.unit_price = Decimal('1.0') self.calendar.save() options_group = OptionGroup.objects.all()[0] self.calendar.options_groups.add(options_group)