def test_x_power_y_num_string(self): """When power is string and base is positive integer""" test_obj = ScientificCalc() self.assertEqual(test_obj.var_initialization(2, "string"), "Value Error")
def test_x_power_y_negint_negint(self): """When both the input is negative integer""" test_obj = ScientificCalc() self.assertEqual(test_obj.var_initialization(-2, -2), pow(-2, -2))
def test_x_power_y_posfloat_posint(self): """When power is negative integer and base is positive float value""" test_obj = ScientificCalc() self.assertEqual(test_obj.var_initialization(2.2, 2), pow(2.2, 2))
def test_x_power_y_posint_posint(self): """When both the input is positive integer""" test_obj = ScientificCalc() self.assertEqual(test_obj.var_initialization(2, 2), pow(2, 2))