def inf_check(l1, l2, desc): check_list_contain_same_items(l1, l2, desc1='Declared', desc2='Inferred', ignore=['t'], desc=desc)
def test_check_list_contain_same_items(self): # Signature: name(lst1, lst2, desc1='', desc2='', ignore=[], desc='') # No Docstring self.assertRaises( NineMLRuntimeError, check_list_contain_same_items, [1, 2, 3, 4, 5], [1, 2, 3, 4], ) self.assertRaises( NineMLRuntimeError, check_list_contain_same_items, ['some', 'funny', 'order', 'in', 'extra'], ['some', 'funny', 'order', 'in'], ) # Good cases: check_list_contain_same_items( [ 'in', 'some', 'funny', 'order', ], ['some', 'funny', 'order', 'in'], ) check_list_contain_same_items( [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], ) check_list_contain_same_items( [1, 3, 4, 5, 2], [1, 2, 3, 4, 5], ) # Chack ignoring: check_list_contain_same_items( [1, 3, 4, 5, 2], [1, 2, 3, 4, 5, 6], ignore=[6], )
def test_check_list_contain_same_items(self): # Signature: name(lst1, lst2, desc1='', desc2='', ignore=[], desc='') # No Docstring self.assertRaises( NineMLRuntimeError, check_list_contain_same_items, [1, 2, 3, 4, 5], [1, 2, 3, 4], ) self.assertRaises( NineMLRuntimeError, check_list_contain_same_items, ['some', 'funny', 'order', 'in', 'extra'], ['some', 'funny', 'order', 'in'], ) # Good cases: check_list_contain_same_items( ['in', 'some', 'funny', 'order', ], ['some', 'funny', 'order', 'in'], ) check_list_contain_same_items( [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], ) check_list_contain_same_items( [1, 3, 4, 5, 2], [1, 2, 3, 4, 5], ) # Chack ignoring: check_list_contain_same_items( [1, 3, 4, 5, 2], [1, 2, 3, 4, 5, 6], ignore=[6], )
def inf_check(l1, l2, desc): check_list_contain_same_items(l1, l2, desc1='Declared', desc2='Inferred', ignore=['t'], desc=desc)