def test_merging_basic_attributes(self):
        """Merging: ensure basic (non-relationships) attributes are properly
        saved."""
        assertions = {
            'id': self.event_b.id,
            'slug': self.event_a.slug,
            'completed': self.event_b.completed,
            'assigned_to': self.event_a.assigned_to,
            'start': self.event_b.start,
            'end': self.event_a.end,
            'host': self.event_b.host,
            'administrator': self.event_a.administrator,
            'url': self.event_b.url,
            'reg_key': self.event_a.reg_key,
            'admin_fee': self.event_b.admin_fee,
            'invoice_status': self.event_a.invoice_status,
            'attendance': self.event_b.attendance,
            'country': self.event_a.country,
            'latitude': self.event_b.latitude,
            'longitude': self.event_a.longitude,
            'learners_pre': self.event_b.learners_pre,
            'learners_post': self.event_a.learners_post,
            'instructors_pre': self.event_b.instructors_pre,
            'instructors_post': self.event_a.instructors_post,
            'learners_longterm': self.event_b.learners_longterm,
            'contact': self.event_a.contact,
            'venue': self.event_b.venue,
            'notes': self.event_a.notes,
            'address': self.event_a.address / self.event_b.address,
        }
        rv = self.client.post(self.url, data=self.strategy)
        self.assertEqual(rv.status_code, 302)
        self.event_b.refresh_from_db()

        for key, value in assertions.items():
            self.assertEqual(getattr(self.event_b, key), value, key)
dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEventMerging.test_merging_basic_attributes/operator `+` -> `/`