'Tests the delete method of a List of Embedded Documents.'

def test_delete(self):

    number = self.post1.comments.delete()
    self.post1.save()
    self.assertListEqual(self.BlogPost.objects(id=self.post1.id)[0].comments, [])
    self.assertListEqual(self.post1.comments, [])
    self.assertIsInstance(self.post1.comments, EmbeddedDocumentList)
    self.assertEqual(number, 2)
