def test_caffe_test(net): caffe = Caffe() caffe.train(net) for w in net.weights(): assert caffe.test(net, w) > 0.96