@@ -40,15 +40,18 @@ def test_get_env_str(self):
4040 self .env .stop ()
4141 assert self .env .isUp () == False
4242
43- ''' def test_compare_env(self):
43+ def test_compare_env (self ):
4444 self .env = Env (env = 'oss' , logDir = self .test_dir , redisBinaryPath = REDIS_BINARY ,
4545 redisEnterpriseBinaryPath = REDIS_ENTERPRISE_BINARY , dmcBinaryPath = DMC_PROXY_BINARY )
46- assert self.env.compareEnvs(Env(env='oss', logDir=self.test_dir, redisBinaryPath=REDIS_BINARY,
47- redisEnterpriseBinaryPath=REDIS_ENTERPRISE_BINARY,
48- dmcBinaryPath=DMC_PROXY_BINARY)) is True
49- assert self.env.compareEnvs(Env(env='oss', logDir=self.test_dir, redisBinaryPath=REDIS_BINARY,
50- redisEnterpriseBinaryPath=REDIS_ENTERPRISE_BINARY,
51- dmcBinaryPath=DMC_PROXY_BINARY, useAof=True)) is False'''
46+ env = Env (env = 'oss' , logDir = self .test_dir , redisBinaryPath = REDIS_BINARY ,
47+ redisEnterpriseBinaryPath = REDIS_ENTERPRISE_BINARY , dmcBinaryPath = DMC_PROXY_BINARY )
48+ assert self .env .compareEnvs (env ) is True
49+ env .stop ()
50+ env = Env (env = 'oss' , logDir = self .test_dir , redisBinaryPath = REDIS_BINARY ,
51+ redisEnterpriseBinaryPath = REDIS_ENTERPRISE_BINARY , dmcBinaryPath = DMC_PROXY_BINARY , useAof = True )
52+ assert self .env .compareEnvs (env ) is False
53+ env .stop ()
54+ self .env .stop ()
5255
5356 def test_get_connection (self ):
5457 pass
0 commit comments