'Ensure that a DocManager returns the correct set of meta collection
names.'

def test_meta_collections(self):

    meta_collection_names = set()
    if self.use_single_meta_collection:
        meta_collection_names.add(self.choosy_docman.meta_collection_name)
    self.assertEqual(set(self.choosy_docman._meta_collections()), meta_collection_names)
    for namespace in ['test.test', 'foo.bar', 'test.bar']:
        if (not self.use_single_meta_collection):
            meta_collection_names.add(namespace)
        self.choosy_docman.upsert({'_id': '1'}, namespace, 1)
        self.assertEqual(set(self.choosy_docman._meta_collections()), meta_collection_names)
