'Ensure embedded documents play nicely'

def test_dynamic_and_embedded(self):

    class Address(EmbeddedDocument, ):
        city = StringField()
    class Person(DynamicDocument, ):
        name = StringField()
    Person.drop_collection()
    Person(name='Ross', address=Address(city='London')).save()
    person = Person.objects.first()
    person.address.city = 'Lundenne'
    person.save()
    self.assertEqual(Person.objects.first().address.city, 'Lundenne')
    person = Person.objects.first()
    person.address = Address(city='Londinium')
    person.save()
    self.assertEqual(Person.objects.first().address.city, 'Londinium')
    person = Person.objects.first()
    person.age = 35
    person.save()
    self.assertEqual(Person.objects.first().age, 35)
