import unittest
import kalkulator


class testKalkulator(unittest.TestCase):

    def testAdd(self):
        self.assertEqual(kalkulator.add(2, 2), 4)

    def testSubtract(self):
        self.assertEqual(kalkulator.subtract(2, 2), 0)

    def testMultiplication(self):
        self.assertEqual(kalkulator.multiplication(2, 2), 4)

    def testDivision(self):
        self.assertEqual(kalkulator.division(2, 2), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.division, 2, 0)

    def testExponentiation(self):
        self.assertEqual(kalkulator.exponentiation(2), 4)

    def testSquareroot(self):
        self.assertEqual(kalkulator.squareroot(4), 2)

    def testPercent(self):
        self.assertEqual(kalkulator.percent(5, 4), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.percent, 4, 0)


if __name__ == '__main__':
    unittest.main()

3f3bbd0c56cb4b3fe4e711efcb66a71644b60cec
<mask token>


class testKalkulator(unittest.TestCase):

    def testAdd(self):
        self.assertEqual(kalkulator.add(2, 2), 4)

    def testSubtract(self):
        self.assertEqual(kalkulator.subtract(2, 2), 0)
    <mask token>

    def testDivision(self):
        self.assertEqual(kalkulator.division(2, 2), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.division, 2, 0)

    def testExponentiation(self):
        self.assertEqual(kalkulator.exponentiation(2), 4)
    <mask token>

    def testPercent(self):
        self.assertEqual(kalkulator.percent(5, 4), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.percent, 4, 0)


<mask token>

<mask token>


class testKalkulator(unittest.TestCase):

    def testAdd(self):
        self.assertEqual(kalkulator.add(2, 2), 4)

    def testSubtract(self):
        self.assertEqual(kalkulator.subtract(2, 2), 0)
    <mask token>

    def testDivision(self):
        self.assertEqual(kalkulator.division(2, 2), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.division, 2, 0)

    def testExponentiation(self):
        self.assertEqual(kalkulator.exponentiation(2), 4)

    def testSquareroot(self):
        self.assertEqual(kalkulator.squareroot(4), 2)

    def testPercent(self):
        self.assertEqual(kalkulator.percent(5, 4), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.percent, 4, 0)


<mask token>

<mask token>


class testKalkulator(unittest.TestCase):

    def testAdd(self):
        self.assertEqual(kalkulator.add(2, 2), 4)

    def testSubtract(self):
        self.assertEqual(kalkulator.subtract(2, 2), 0)

    def testMultiplication(self):
        self.assertEqual(kalkulator.multiplication(2, 2), 4)

    def testDivision(self):
        self.assertEqual(kalkulator.division(2, 2), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.division, 2, 0)

    def testExponentiation(self):
        self.assertEqual(kalkulator.exponentiation(2), 4)

    def testSquareroot(self):
        self.assertEqual(kalkulator.squareroot(4), 2)

    def testPercent(self):
        self.assertEqual(kalkulator.percent(5, 4), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.percent, 4, 0)


<mask token>

import unittest
import kalkulator


class testKalkulator(unittest.TestCase):

    def testAdd(self):
        self.assertEqual(kalkulator.add(2, 2), 4)

    def testSubtract(self):
        self.assertEqual(kalkulator.subtract(2, 2), 0)

    def testMultiplication(self):
        self.assertEqual(kalkulator.multiplication(2, 2), 4)

    def testDivision(self):
        self.assertEqual(kalkulator.division(2, 2), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.division, 2, 0)

    def testExponentiation(self):
        self.assertEqual(kalkulator.exponentiation(2), 4)

    def testSquareroot(self):
        self.assertEqual(kalkulator.squareroot(4), 2)

    def testPercent(self):
        self.assertEqual(kalkulator.percent(5, 4), 1)
        self.assertRaises(ZeroDivisionError, kalkulator.percent, 4, 0)


if __name__ == '__main__':
    unittest.main()
