def test_drop_collection(self):
        """Ensure that the collection may be dropped from the database.
        """
        collection_name = 'person'
        self.Person(name='Test').save()
        self.assertTrue(collection_name in self.db.collection_names())

        self.Person.drop_collection()
        self.assertFalse(collection_name in self.db.collection_names())
dataset/ETHPy150Open MongoEngine/mongoengine/tests/document/class_methods.py/ClassMethodsTest.test_drop_collection/original