Convert boolean to binary

Define a function convert_bool_to_binary that receives a boolean and returns
1 if it is true and 0 if it is false.

Examples:

>>> convert_bool_to_binary(True)
1
>>> convert_bool_to_binary(False)
0
import unittest


class ConvertBoolToBinaryTestCase(unittest.TestCase):

    def test_true_value(self):
        self.assertEqual(convert_bool_to_binary(True), 1)

    def test_false_value(self):
        self.assertEqual(convert_bool_to_binary(False), 0)