'Tests the AddField operation on TextField.'

def test_add_textfield(self):

    project_state = self.set_up_test_model('test_adtxtfl')
    Pony = project_state.apps.get_model('test_adtxtfl', 'Pony')
    pony = Pony.objects.create(weight=42)
    new_state = self.apply_operations('test_adtxtfl', project_state, [migrations.AddField('Pony', 'text', models.TextField(default='some    text')), migrations.AddField('Pony', 'empty', models.TextField(default='')), migrations.AddField('Pony', 'digits', models.TextField(default='42')), migrations.AddField('Pony', 'quotes', models.TextField(default='"\'"'))])
    Pony = new_state.apps.get_model('test_adtxtfl', 'Pony')
    pony = Pony.objects.get(pk=pony.pk)
    self.assertEqual(pony.text, 'some    text')
    self.assertEqual(pony.empty, '')
    self.assertEqual(pony.digits, '42')
    self.assertEqual(pony.quotes, '"\'"')
