Esempio n. 1
0
 def test_filter_is_set(self):
     collection = BsonCollection(
         os.path.dirname(os.path.realpath(__file__)) + '/' +
         config['bson']['valid'])
     collection.set_filter({'a': 'b', 'c': 'd', 'e': {'f': 'g', 'h': 'i'}})
     self.assertEqual(collection.filter, {
         'a': 'b',
         'c': 'd',
         'e': {
             'f': 'g',
             'h': 'i'
         }
     })
Esempio n. 2
0
	def test_filter_is_set(self):
		collection = BsonCollection(os.path.dirname(os.path.realpath(__file__)) +'/'+ config['bson']['valid'])
		collection.set_filter({'a':'b', 'c':'d', 'e':{'f':'g', 'h':'i'}})
		self.assertEqual(collection.filter, {'a':'b', 'c':'d', 'e':{'f':'g', 'h':'i'}})