Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from unittest import TestCase
- from converted_bases import convert_base
- class TestBasesFunction(TestCase):
- def test_frombase_above_36(self):
- self.assertRaises(Warning, convert_base, '255', 37, 2)
- def test_tobase_above_36(self):
- self.assertRaises(Warning, convert_base, '1001101', 2, 37)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement