B-55703 Ported python tests to spock

Replaced the connection framework code.