Last active
August 29, 2015 14:16
-
-
Save Grigorov-/f03124245ac5a51ac9b1 to your computer and use it in GitHub Desktop.
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 | |
import random | |
class RandomListOfNumbers: | |
def __init__(self): | |
self.numbers = [random.randint(1, 1000) | |
for x in range(random.randint(1, 10))] | |
class TestPowers(unittest.TestCase): | |
def setUp(self): | |
self.numbers = RandomListOfNumbers().numbers | |
def test_type(self): | |
self.assertEqual( | |
type(solution.powers_of_two_remain(self.numbers)), bool) | |
if __name__ == '__main__': | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment