Example #1
0
 def test_get_validated_scale_float_scale_returns_integer(self):
   self.assertEqual(layers._get_validated_scale(5.5), 5)
Example #2
0
 def test_get_validated_scale_invalid_scale_throws_exception(self):
   with self.assertRaises(ValueError):
     layers._get_validated_scale(0)