When asserting the number of members obtained in unit test deployables, should use assertEqual

Related-Bug: #2002460

Change-Id: I2a5bf79b2eb0355edbc07e54cbb51c87f860e97d
This commit is contained in:
zhangtongjian 2023-01-11 18:49:12 +08:00
parent 99858d03b8
commit 05505927a5
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class TestDeployablesController(v2_test.APITestV2):
self.assertIsInstance(out_deployable, list)
for out_dev in out_deployable:
self.assertIsInstance(out_dev, dict)
self.assertTrue(len(out_deployable), 1)
self.assertEqual(len(out_deployable), 1)
self._validate_deployable(self.fake_deployable, out_deployable[0])
@mock.patch('cyborg.objects.Deployable.list')