Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from unittest import TestCase
  2. from converted_bases import convert_base
  3.  
  4. class TestBasesFunction(TestCase):
  5. def test_frombase_above_36(self):
  6. self.assertRaises(Warning, convert_base, '255', 37, 2)
  7. def test_tobase_above_36(self):
  8. self.assertRaises(Warning, convert_base, '1001101', 2, 37)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement