Exemplo n.º 1
0
 def test_gw_03(self):
     """Verify that empty lists do not raise an exception."""
     lst_a = []
     lst_b = []
     r = Utils.sort_list_by_another_list(lst_a, lst_b, reverse=False)
     e = []
     self.assertListEqual(r, e)
Exemplo n.º 2
0
 def test_gw_02(self):
     lst_a = ['a', 'b', 'c', 'd', 'e']
     lst_b = [0, 0, 3, 2, 0]
     r = Utils.sort_list_by_another_list(lst_a, lst_b, reverse=True)
     e = ['c', 'd', 'a', 'b', 'e']
     self.assertListEqual(r, e)