-
- from .nyx_schema_compare import Utilities
-
-
- class TestUtilities:
-
- def test_get_diff_from_lists(self):
- list_primary = [1,2,3,4]
- list_comparator = [1,3,4,5]
-
- expected = [5]
- results = Utilities.get_diff_from_lists(list_primary, list_comparator)
- assert expected == results
-
- expected = [2]
- results = Utilities.get_diff_from_lists(list_comparator, list_primary)
- assert expected == results
-
- def test_get_common_from_lists(self):
- list_primary = [1, 2, 3, 4]
- list_comparator = [1, 3, 4, 5]
-
- expected = [1,3,4]
- results = Utilities.get_common_from_lists(list_primary, list_comparator)
- assert expected == results
-