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' } })
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'}})