Question: Create tests for the base conversion code below Should have 100% coverage Use the given outline below from __future__ import annotations import unittest from base_convert

Create tests for the base conversion code below

Should have 100% coverage

Create tests for the base conversion code below Should have 100% coverage

Use the given outline below

from __future__ import annotations

import unittest

from base_convert import convert

class Tests(unittest.TestCase):

def test_conbert_base02_1(self):

self.assertEqual(convert(0, 2), "0")

def test_convert_base16_1(self):

self.assertEqual(convert(107, 16), "6B")

# TODO: add more tests

if __name__ == "__main__":

unittest.main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!