comparison src/test/helpers.py @ 833:9bac2fc74968

memory: bug fix to not register twice frontends parameters + added some tests for param update
author souliane <souliane@mailoo.org>
date Fri, 07 Feb 2014 17:10:24 +0100
parents 187d2443c82d
children c5a8f602662b
comparison
equal deleted inserted replaced
832:c4b22aedb7d7 833:9bac2fc74968
238 def init(self): 238 def init(self):
239 """Tests that manipulate params, entities, features should 239 """Tests that manipulate params, entities, features should
240 re-initialise the memory first to not fake the result.""" 240 re-initialise the memory first to not fake the result."""
241 self.params.load_default_params() 241 self.params.load_default_params()
242 self.params.params.clear() 242 self.params.params.clear()
243 self.params.frontends_cache = []
243 self.entities_data = {} 244 self.entities_data = {}
244 self.server_features = {} 245 self.server_features = {}
245 246
246 def getProfileName(self, profile_key, return_profile_keys=False): 247 def getProfileName(self, profile_key, return_profile_keys=False):
247 return self.params.getProfileName(profile_key, return_profile_keys) 248 return self.params.getProfileName(profile_key, return_profile_keys)