Exemple #1
0
class TestSplitWeights(unittest.TestCase):
    def test_split_weights(self):
        with self.assertRaises(ValueError):
            split_weights([0] * 20, 12, 10)
    # Doesn't Raise
    split_weights([0] * 70, 5, 10)
    split_weights([0] * 12, 10, 1)
Exemple #2
0
 def test_split_weights(self):
     with self.assertRaises(ValueError):
         split_weights([0] * 20, 12, 10)
Exemple #3
0
 def test_split_weights(self):
     with self.assertRaises(ValueError):
         split_weights([0] * 20, 12, 10)