1 import ./make-test-python.nix ({ pkgs, ... }: {
5 imports = [ ../modules/profiles/minimal.nix ];
6 services.memcached.enable = true;
10 testScript = pkgs.writers.writePython3 "test_memcache" {
11 libraries = with pkgs.python3Packages; [ memcached ];
14 c = memcache.Client(['localhost:11211'])
16 assert 'value' == c.get('key')
20 machine.wait_for_unit("memcached.service")
21 machine.wait_for_open_port(11211)
22 machine.succeed("${testScript}")