Replace the use of assertDictContainsSubset

The method was deprecated in Python 3.2 [1]; and
no longer available in Python version 3.12 [2]

assertLessEqual [3] offers a decent alternative.

[1] https://docs.python.org/3/whatsnew/3.2.html#unittest
[2] https://docs.python.org/3/whatsnew/3.12.html#id3
[3] https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertLessEqual

Change-Id: I74276297d80cbd055a9347b0d595fe7c2d7742cc
Closes-Bug: #2085467
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
10 files changed