Skip to content

Instantly share code, notes, and snippets.

import unittest
import solution
class ExtractTypeTest(unittest.TestCase):
def test_python(self):
input = [('p', 1), ('y', 1), ('t', 1),
('h', 1), ('o', 1), ('n', 1)]
self.assertEqual("python", solution.extract_type(input, str))
import unittest
import solution
class PowerOfTwoTests(unittest.TestCase):
def test_empty_list(self):
self.assertFalse(solution.powers_of_two_remain([]))
def test_multiple_numbers_in_list_true(self):