def _create_instance(self):
        inst = {}
        inst['image_id'] = 1
        inst['reservation_id'] = 'r-fakeres'
        inst['user_id'] = self.user_id
        inst['project_id'] = self.project_id
        inst['instance_type_id'] = 1
        inst['ami_launch_index'] = 0
        return db.instance_create(self.context, inst)
Merging: ensure relational fields are properly saved/combined.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/console/test_console.py/ConsoleTestCase._create_instance--crossover with--dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEventMerging.test_merging_relational_attributes