'Tests the exclude method of a List of Embedded Documents
with a single keyword.'

def test_single_keyword_exclude(self):

    excluded = self.post1.comments.exclude(author='user1')
    self.assertEqual(len(excluded), 1)
    self.assertEqual(excluded[0].author, 'user2')
