def stub_out_networking(stubs):

    def get_my_ip():
        return '127.0.0.1'
    stubs.Set(netutils, 'get_my_ipv4', get_my_ip)
def stub_out_networking(stubs):

    def get_my_ip():
        return '127.0.0.1'
    stubs.Set(netutils, 'get_my_ipv4', get_my_ip)