Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvirani committed May 6, 2021
1 parent cfed26c commit f5616ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_oneview.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
SPKeys,
ServerProfileMerger,
ServerProfileReplaceNamesByUris,
LIGMerger,
sort_by_uplink_set_location,
_sort_by_keys,
_str_sorted,
Expand Down Expand Up @@ -1404,6 +1405,12 @@ def test_compare_lig_empty_list_and_none(self):
}
assert not compare_lig(dict1, dict2)

def test_merge_when_having_diff_uplink_set_attributes(self):
merged_data = LIGMerger().merge_data(self.DICT_UPLINK_SET1, self.DICT_UPLINK_SET2)

expected_connections = self.DICT_UPLINK_SET2['uplinkSets']
assert merged_data['uplinkSets'] == expected_connections

def test_resource_compare_with_double_level_list(self):
dict1 = {list: [
[1, 2, 3],
Expand Down

0 comments on commit f5616ea

Please sign in to comment.