Skip to content

Instantly share code, notes, and snippets.

Emmanuel Goossaert goossaert

Block or report user

Report or block goossaert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View knock-knock.c
* knock-knock 0.1 - GPL License v3.0
* Copyright (c) 2010 Emmanuel Goossaert
* emmanuel at goossaert dot com
* See also:
* -
* -
* Knock-knock is a daemon that implements port knocking
goossaert /
Created May 24, 2012
Module that requires testing
def initialize():
# Create initialization data and take a lot of time
data = ...
return data
def method_to_test( data ):
# Code to test
goossaert /
Created May 24, 2012
Wrapper module which caches data and runs the module to test
import sys
import traceback
import mainprogram
if __name__=='__main__':
cache = None
is_first_iteration = True
You can’t perform that action at this time.