def test_get_pivot_11(self): test_input = 11 test_ans = get_pivot(test_input) self.assertIsNotNone(test_ans) self.assertEqual(6, test_ans)
def test_get_pivot_3(self): test_input = 3 test_ans = get_pivot(test_input) self.assertIsNotNone(test_ans) self.assertEqual(3, test_ans)
def test_get_pivot_5(self): test_input = 5 test_ans = get_pivot(test_input) self.assertIsNotNone(test_ans) self.assertEqual(0, test_ans)
def test_get_pivot_negative(self): test_input = 1 test_ans = get_pivot(test_input) self.assertIsNotNone(test_ans) self.assertEqual(-4, test_ans)