Skip to content

Commit

Permalink
Remove last of homegrown Mock object
Browse files Browse the repository at this point in the history
using mock.Mock everywhere now
  • Loading branch information
labisso authored and oldpatricka committed Jul 3, 2013
1 parent 0d8a638 commit 537b83a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion epu/provisioner/test/util.py
Expand Up @@ -13,9 +13,9 @@

from libcloud.compute.base import NodeDriver, Node, NodeSize
from libcloud.compute.types import NodeState
from mock import Mock

from epu.provisioner.ctx import ContextResource
from epu.test import Mock
from epu.states import InstanceState

import dashi.bootstrap
Expand Down
11 changes: 0 additions & 11 deletions epu/test/__init__.py
Expand Up @@ -14,17 +14,6 @@
log = logging.getLogger(__name__)


class Mock(object):
def __init__(self, **kwargs):
self.__dict__.update(kwargs)

def __repr__(self):
return self.__str__()

def __str__(self):
return "Mock(" + ",".join("%s=%s" % (k, v) for k, v in self.__dict__.iteritems()) + ")"


class MockLeader(object):

def __init__(self):
Expand Down

0 comments on commit 537b83a

Please sign in to comment.