You first have to create a network and train it on your dataset.
Then you have to use activate
to get a result from your inputs and test if it matches the desired output.
One easy way to do it is:
testOutput = { [1,0,0,1] : [1], [1,1,0,1] : [0], [1,0,1,1]:[0], [1,0,1,0]:[1] }
for input, expectedOutput in testInput.items():
output = net.activate(input)
if output != expectedOutput:
print "{} didn't match the desired output."
print "Expected {}, got {}".format(input, expectedOutput, output)