def METHOD_NAME(self):
    output = StringIO()
    structure = StructureFactory.create(name='structure')
    filename = os.path.join(os.path.dirname(__file__), 'data', 'dive.shp')
    call_command('loaddive', filename, name_field='name', depth_field='depth',
                 structure_default='structure', verbosity=2, stdout=output)
    self.assertIn('Dives will be linked to %s' % structure, output.getvalue())
    self.assertIn('2 objects created.', output.getvalue())
    value = Dive.objects.get(name='name')
    self.assertIsNone(value.practice)