def test_sequential_deleted(self, mock_remove_prereq, mock_set_required):
     """ Test gating milestone data is cleanup up when course content item is deleted """
     handle_item_deleted(usage_key=self.open_seq.location, user_id=0)
     mock_remove_prereq.assert_called_with(self.open_seq.location)
     mock_set_required.assert_called_with(self.open_seq.location.course_key,
                                          self.open_seq.location, None,
                                          None)
예제 #2
0
 def test_sequential_deleted(self, mock_remove_prereq, mock_set_required):
     """ Test gating milestone data is cleanup up when course content item is deleted """
     handle_item_deleted(usage_key=self.open_seq.location, user_id=0)
     mock_remove_prereq.assert_called_with(self.open_seq.location)
     mock_set_required.assert_called_with(
         self.open_seq.location.course_key, self.open_seq.location, None, None, None
     )