def test_base_to_int_negative(self): self.assertEqual(Aug7_exercise.base_to_int("-10000", 2), -16)
def test_base_to_int_0(self): self.assertEqual(Aug7_exercise.base_to_int("123", 0), 0)
def test_base_to_int_3(self): self.assertEqual(Aug7_exercise.base_to_int("110", 3), 12)
def test_base_to_int_10(self): self.assertEqual(Aug7_exercise.base_to_int("16", 10), 16)
def test_base_to_int_16(self): self.assertEqual(Aug7_exercise.base_to_int("10000", 2), 16)