def test_max_of_range(self): self.assertEqual(setr_max(self.mr), 1999)
def test_safely_flatten(self): new_mr = self.mr.safely_flatten() self.assertEqual(len(new_mr.ranges), 2) self.assertEqual(len(self.mr.ranges), 3) self.assertEqual(setr_min(new_mr), setr_min(self.mr)) self.assertEqual(setr_max(new_mr), setr_max(self.mr))
def test_min_of_range(self): self.assertEqual(max(self.fr), setr_max(self.fr))