def test_unregister(self): commands = StoreCommands(store.MemoryStore()) commands.unregister('web', '1.0', 'localhost:42') assert commands.store.get_key('web', '1.0', 'localhost:42') == []
def test_unregister(self): commands = StoreCommands(mock.MagicMock()) commands.unregister('web', '1.0', 'localhost:42') commands.store.delete_key.assert_called_with('web', '1.0', 'localhost:42')