On Fri, Oct 07, 2016 at 08:26:28PM -0500, boB Stepp wrote:
> I think I have this figured out, but I want to be certain I am doing
> it both correctly and in the preferred way. I have a need for a
> get_input() function and have written my first test for this function
> as follows:
Testing code th
I think I now understand why I am getting this EOF exception.
On Fri, Oct 7, 2016 at 10:16 PM, boB Stepp wrote:
> My current get_input() function:
>
> ==
> def get_input():
> '''Get string input from the user and convert it to an integer. T
My current get_input() function:
==
def get_input():
'''Get string input from the user and convert it to an integer. This
integer is returned to the caller.
:num_sides: Number of sides for the displayed grid.'''
while True:
Oops!
On Fri, Oct 7, 2016 at 8:26 PM, boB Stepp wrote:
> I think I have this figured out, but I want to be certain I am doing
> it both correctly and in the preferred way. I have a need for a
> get_input() function and have written my first test for this function
> as follows:
>
> class TestGetI
I think I have this figured out, but I want to be certain I am doing
it both correctly and in the preferred way. I have a need for a
get_input() function and have written my first test for this function
as follows:
class TestGetInput(unittest.TestCase):
'''Tests for the function get_input().'