Example #1
0
 def test_sort_by_score_one_element(self):
     """Check the sorting of only one element, should return the same"""
     deoverlap.sort_by_score(self.unsorted_single_element)
     assert self.unsorted_single_element == self.single_element
Example #2
0
 def test_sort_by_score(self):
     """Check if the sorting is doing the sort by score"""
     deoverlap.sort_by_score(self.unsorted_elements)
     assert self.unsorted_elements ==\
         self.sorted_elements