def test_returns_above_min(self): self.assertEqual(bound(0, -1, 2), 0)
def test_returns_between_min_max(self): self.assertEqual(bound(0, 1, 2), 1)
def test_returns_below_max(self): self.assertEqual(bound(0, 3, 2), 2)
def test_max_below_min_raises_exception(self): with self.assertRaises(Exception): bound(0, 0, -1)