'Test for tickets #8298, #9942 - Field values should be coerced into the
correct type by the deserializer, not as part of the database write.'

def test_field_value_coerce(self):

    global pre_save_checks
    pre_save_checks = []
    signals.pre_save.connect(animal_pre_save_check)
    management.call_command('loaddata', 'animal.xml', verbosity=0, commit=False)
    self.assertEqual(pre_save_checks, [("Count    =    42    (<type    'int'>)", "Weight    =    1.2    (<type    'float'>)")])
    signals.pre_save.disconnect(animal_pre_save_check)
