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:
parent
99858d03b8
commit
05505927a5
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user