Some tests misusing assertTrue for comparisons
`assertTrue` is not for comparing arguments, should use `assertEqual` for that.

The developer's intent of the test was to compare argument 1 with argument 2, which is not happening. Really what is happening is the test is passing because first argument is truthy. The correct method to use is assertEqual. [more details](https://codereview.doctor/features/python/best-practice/avoid-misusing-unittest-assert-true)

https://github.com/keras-team/keras/blob/b96518a22bfd92a29811e507dec0b34248a8a3f5/keras/mixed_precision/loss_scale_optimizer_test.py#L1170

I found this issue automatically, see other issues [here](https://codereview.doctor/keras-team/keras)
diff --git a/keras/mixed_precision/loss_scale_optimizer_test.py b/keras/mixed_precision/loss_scale_optimizer_test.py
index 2569c9a2d3..ef6853132b 100644
--- a/keras/mixed_precision/loss_scale_optimizer_test.py
+++ b/keras/mixed_precision/loss_scale_optimizer_test.py
@@ -1167,7 +1167,7 @@ class LossScaleOptimizerTest(tf.test.TestCase, parameterized.TestCase):
     self.assertEqual(self._eval_if_tensor(opt.inner_optimizer.momentum), 0.5)
     self.assertEqual(self.evaluate(opt.loss_scale), 2.)
     self.assertEqual(opt.dynamic_growth_steps, 3.)
-    self.assertTrue(opt.dynamic, 4.)
+    self.assertTrue(opt.dynamic)
     if lso_type in ('v1', 'v2'):
       # Deserializing a LossScaleOptimizerV1 results in a V2 LossScaleOptimizer.
       self.assertEqual(type(opt), loss_scale_optimizer.LossScaleOptimizer)
['keras/mixed_precision/loss_scale_optimizer_test.py']