Since the result contains a list, so ignore_order should be True
in the comparison.
Change-Id: Iff4c655312015a55a69b91692ab6f9696715a143
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
import os
import pytest
-
from deepdiff import DeepDiff
from deploy.get_conf import (
'10.20.11.11', '/dev/sdb',
{'controller01': [], 'controller02': [], 'controller03': [],
'computer01': [], 'computer02': []})
- assert DeepDiff(result, expect) == {}
+ assert DeepDiff(result, expect, ignore_order=True) == {}