Beispiel #1
0
 def setUp(self):
     super(ProgramCourseRunSeatsConditionTests, self).setUp()
     self.condition = factories.ProgramCourseRunSeatsConditionFactory()
     self.test_product = ProductFactory(stockrecords__price_excl_tax=10,
                                        categories=[])
     self.site.siteconfiguration.enable_partial_program = True
Beispiel #2
0
 def test_name(self):
     """ The name should contain the program's UUID. """
     condition = factories.ProgramCourseRunSeatsConditionFactory()
     expected = 'Basket contains a seat for every course in program {}'.format(
         condition.program_uuid)
     self.assertEqual(condition.name, expected)
 def setUp(self):
     super(ProgramCourseRunSeatsConditionTests, self).setUp()
     self.condition = factories.ProgramCourseRunSeatsConditionFactory()