Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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):
type(solution.powers_of_two_remain(self.numbers)), bool)
if __name__ == '__main__':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment