Exemple #1
0
 def test_health_check(self):
     commands = StoreCommands(store.MemoryStore())
     commands.health_check('web', '1.0', 'localhost:42')
     assert commands.store.get_key('web', '1.0', 'localhost:42') == \
         ['localhost:42']
Exemple #2
0
 def test_health_check(self):
     commands = StoreCommands(mock.MagicMock())
     commands.health_check('web', '1.0', 'localhost:42')
     commands.store.set_key.assert_called_with('web', '1.0', 'localhost:42')