Conditional multiplication

Define a function conditional_multiplication that receives a boolean and a
number and returns a number. If the boolean is True the number returned is
multiplied by 10.

Examples:

>>> conditional_multiplication(True, 2)
20
>>> conditional_multiplication(False, 5)
5
import unittest


class ConditionalMultiplicationTestCase(unittest.TestCase):

    def test_true_condition(self):
        self.assertEqual(conditional_multiplication(True, 5), 50)

    def test_false_condition(self):
        self.assertEqual(conditional_multiplication(False, 5), 5)