'Test gridfs_set and dest_mapping arguments override
namespace_options.'

def test_override_namespace_options(self):

    namespace_config = NamespaceConfig(namespace_set=['override.me', 'override.me2'], gridfs_set=['override.me3'], dest_mapping={'override.me': 'overridden.1', 'override.me2': 'overridden.2'}, namespace_options={'override.me': {'rename': 'override.me', 'includeFields': ['_id', 'dont_remove']}, 'override.me2': 'override.me2', 'override.me3': {'gridfs': False}})
    overridden = namespace_config.lookup('override.me')
    self.assertEqual(overridden.dest_name, 'overridden.1')
    self.assertEqual(overridden.include_fields, set(['_id', 'dont_remove']))
    overridden = namespace_config.lookup('override.me2')
    self.assertEqual(overridden.dest_name, 'overridden.2')
    self.assertFalse(overridden.include_fields)
    self.assertTrue(namespace_config.gridfs_namespace('override.me3'))
