def test_register(self): commands = StoreCommands(mock.MagicMock()) commands.register('web', '1.0', 'localhost:42') commands.store.set_key.assert_called_with('web', '1.0', 'localhost:42')
def test_register(self): commands = StoreCommands(store.MemoryStore()) commands.register('web', '1.0', 'localhost:42') assert commands.store.get_key('web', '1.0', 'localhost:42') == \ ['localhost:42']