'Compare the observed and expected resources (ie compare subnets)'

def _compare_resource(self, observed_res, expected_res, res_name):

    for k in expected_res:
        self.assertIn(k, observed_res[res_name])
        if isinstance(expected_res[k], list):
            self.assertEqual(sorted(expected_res[k]), sorted(observed_res[res_name][k]))
        else:
            self.assertEqual(expected_res[k], observed_res[res_name][k])
