@@ -40,15 +40,18 @@ def test_get_env_str(self):
40
40
self .env .stop ()
41
41
assert self .env .isUp () == False
42
42
43
- ''' def test_compare_env(self):
43
+ def test_compare_env (self ):
44
44
self .env = Env (env = 'oss' , logDir = self .test_dir , redisBinaryPath = REDIS_BINARY ,
45
45
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 ()
52
55
53
56
def test_get_connection (self ):
54
57
pass
0 commit comments