@@ -0,0 +1,613 @@
+import unittest%0Aimport numpy as np%0Afrom theano import tensor as T%0A%0Aclass TestConstraints(unittest.TestCase):%0A    def setUp(self):%0A        self.some_values = %5B0.1,0.5,3,8,1e-7%5D%0A        self.example_array = np.random.random((100,100))*100. - 50.%0A        self.example_array%5B0,0%5D = 0. # 0 could possibly cause trouble%0A%0A    def test_maxnorm(self):%0A        from keras.constraints import maxnorm%0A%0A        for m in self.some_values:%0A            norm_instance = maxnorm(m)%0A            normed = norm_instance(self.example_array)%0A            assert(np.all(normed.eval() %3C m))%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Add a test for the max-norm constraint