This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |