Method
get_mock_client
(
cls,
standalones,
members,
mongoses,
hello_hosts=None,
arbiters=None,
down_hosts=None,
*args,
**kwargs,
)
Source from the content-addressed store, hash-verified
| 151 | |
| 152 | @classmethod |
| 153 | def get_mock_client( |
| 154 | cls, |
| 155 | standalones, |
| 156 | members, |
| 157 | mongoses, |
| 158 | hello_hosts=None, |
| 159 | arbiters=None, |
| 160 | down_hosts=None, |
| 161 | *args, |
| 162 | **kwargs, |
| 163 | ): |
| 164 | c = MockClient( |
| 165 | standalones, members, mongoses, hello_hosts, arbiters, down_hosts, *args, **kwargs |
| 166 | ) |
| 167 | |
| 168 | c._connect() |
| 169 | return c |
| 170 | |
| 171 | def kill_host(self, host): |
| 172 | """Host is like 'a:1'.""" |