def test__negyzet1(self): expected = 9 result = calculator(3, 2, '^') self.assertEqual(expected, result)
def test__gyok1(self): expected = 3 result = calculator(9, 1 / 2, '^') self.assertEqual(expected, result)
def test__kivonas1(self): expected = 3 result = calculator(5, 2, '-') self.assertEqual(expected, result)
def test__hiba1(self): expected = 'None' result = calculator(5, 2, '') self.assertEqual(expected, result)
def test__osztas2(self): expected = 0.25 result = calculator(5, 20, ':') self.assertEqual(expected, result)
def test__osztas1(self): expected = 4 result = calculator(20, 5, ':') self.assertEqual(expected, result)
def test__szorzas1(self): expected = 10 result = calculator(2, 5, '*') self.assertEqual(expected, result)
def test__osszeadas1(self): expected = 9 result = calculator(4, 5) self.assertEqual(expected, result)
def test_my_add_is_callable(self): calculator(3, 4)