We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56fabd9 commit 27562cdCopy full SHA for 27562cd
1 file changed
test/unit/test_upgrade.py
@@ -22,6 +22,7 @@
22
import pytest
23
import mox
24
25
+import copy
26
import os
27
import shutil
28
@@ -44,6 +45,9 @@ def __init__(self, args):
44
45
for k, v in args.iteritems():
46
setattr(self, k, v)
47
48
+ def __eq__(self, o):
49
+ return self.__dict__ == o.__dict__
50
+
51
class PartialMockUnixInstall(UnixInstall):
52
53
def __init__(self, args, ext):
@@ -90,7 +94,10 @@ def test_get_server_dir(self, server):
90
94
).AndReturn('server')
91
95
expected = 'server'
92
96
else:
93
- omego.upgrade.Artifacts(args).AndReturn(self.MockArtifacts())
97
+ artifact_args = copy.copy(args)
98
+ artifact_args.sym = ''
99
+ omego.upgrade.Artifacts(artifact_args).AndReturn(
100
+ self.MockArtifacts())
101
expected = 'server-dir'
102
103
self.mox.ReplayAll()
0 commit comments