'Ensure a InvalidDocumentError is thrown if duplicate fields
declare the same db_field.'

def test_duplicate_db_fields_raise_invalid_document_error(self):

    with self.assertRaises(InvalidDocumentError):
        class Foo(Document, ):
            name = StringField()
            name2 = StringField(db_field='name')
