adding unit tests to compphoto caffe2 projects
adding unit tests to compphoto caffe2 projects

Summary: Ported existing adhoc test code to use python unittests. Small tweak to caffe2.python.hypothesis_test_util

Reviewed By: kmatzen

Differential Revision: D5837295

fbshipit-source-id: daa2360db3c18c7d4bda7785e7a0b9175f5858af

xzturn/caffe2,caffe2/caffe2,Yangqing/caffe2,davinwang/caffe2,sf-wind/caffe2,pietern/caffe2,pietern/caffe2,pietern/caffe2,davinwang/caffe2,davinwang/caffe2,sf-wind/caffe2,Yangqing/caffe2,sf-wind/caffe2,sf-wind/caffe2,xzturn/caffe2,sf-wind/caffe2,pietern/caffe2,pietern/caffe2,xzturn/caffe2,Yangqing/caffe2,xzturn/caffe2,xzturn/caffe2,Yangqing/caffe2,davinwang/caffe2,davinwang/caffe2,Yangqing/caffe2