Example #1
0
def main():
    description = "Fibonacci namer version: {version}".format(version=__version__)
    parser = argparse.ArgumentParser(description=description)
    parser.add_argument("count", type=int,
                        help="How many Fibonacci numbers to name")

    if len(sys.argv) == 1:
        parser.print_help()
        return

    options = parser.parse_args()
    for fibbo in generate_fibbonachi(options.count):
        print(name_fibbonachi(fibbo))
Example #2
0
 def test_large_BuzzFizz(self):
     """A large prime number
     """
     self.assertEqual(name_fibbonachi(14431), "BuzzFizz")
Example #3
0
 def setUp(self):
     """Generate 10 names
     """
     self.fibo_names = list(
         name_fibbonachi(fibo) for fibo in generate_fibbonachi(10)
     )