

def test_merging_base_event(self):
    "Merging: ensure the base event is selected based on ID form\n        field.\n\n        If ID field has a value of 'obj_b', then event B is base event and it\n        won't be removed from the database after the merge. Event A, on the\n        other hand, will."
    rv = self.client.post(self.url, data=self.strategy)
    self.assertEqual(rv.status_code, 302)
    self.event_b.refresh_from_db()
    with self.assertRaises(Event.DoesNotExist):
        self.event_a.refresh_from_db()

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEventMerging.test_merging_base_event/original