[01:10] <shakes808> Evening all
[01:11] <rick_h_> party
[01:11] <shakes808> How goes it?
[01:11] <rick_h_> not bad
[01:12] <rick_h_> replying to a work email I couldn't let sit over night or it'd drive me nuts :P
[01:12] <shakes808> that is why when I clock out, I don't look at them any longer :)
[01:12] <rick_h_> worldwide company makes that a pita
[01:12] <rick_h_> but yea, good policy to live by
[01:13] <shakes808> How's the fishing?
[01:13] <rick_h_> good, haven't been able to get out lately. been out of town and such
[01:13] <rick_h_> but taking the kayak to the campground this weekend, hopefully catch something
[01:13] <shakes808> gotcha.  saw that pike you caught, pretty nice.
[01:13] <shakes808> awesome!
[01:14] <rick_h_> yea, was doing the wed night thing for a while and always caught at least a few
[01:14] <rick_h_> nice time doing the kayak thing
[01:14] <shakes808> haven't been able to get out much this year, maybe 4 times not including the one time I went Ice this year :(
[01:14] <rick_h_> have to get out, soon it'll shut down
[01:14] <shakes808> I have been wanting to pick one up, but nowhere to put it
[01:15] <shakes808> I know
[01:16] <shakes808> Had a newbie question for you.  Python unittest, trying to get the unittest file to read the base file to test the function.  I am probably doing it wrong, can you take a look at it?
[01:17] <rick_h_> can try
[01:18] <shakes808> http://codeshare.io/V2A6b
[01:19] <rick_h_> never import *
[01:19] <rick_h_> does it import Dice?
[01:19] <shakes808> I had import GenericRoll from Dice
[01:19] <shakes808> and it didn't like it
[01:19] <rick_h_> if you import pdb;pdb.set_trace() in line 24 ?
[01:19] <rick_h_> no, you have to import the class
[01:19] <rick_h_> is the file really caps?
[01:19] <rick_h_> Dice.py?
[01:19] <shakes808> yes
[01:20] <rick_h_> from Dice import Dice
[01:20] <rick_h_> right, so you've got a class, you can't just test the function
[01:20] <shakes808> still getting the same error
[01:22] <shakes808> pasted in the IO
[01:22] <shakes808> Still can't reach the class
[01:22] <shakes808> should I prefix the function call with Dice.GenericRoll
[01:23] <rick_h_> http://paste.ubuntu.com/12332671/
[01:23] <rick_h_> it's just hand written, might need some more love
[01:23] <rick_h_> don't name things with Java/etc. classes are Cap, everything else is lower. functions are _ split, and yes, you need to create a class instance.
[01:23] <shakes808> alright, let me try.  makes sense to create the object :|  told ya newb stuff
[01:23] <rick_h_> all good
[01:28] <shakes808> Getting closer
[01:29] <shakes808> pasted my error again
[01:29] <shakes808> has to do with the assertNotEqual
[01:30] <shakes808> Doesn't look like it was able to get to my function?
[01:30] <rick_h_> shakes808: you never return a value
[01:30] <rick_h_> shakes808: so the value that comes out of your function is "None"
[01:30] <rick_h_> shakes808: try adding: return self.number
[01:30] <shakes808> derp
[01:30] <shakes808> yeah
[01:30] <rick_h_> or use the class
[01:31] <rick_h_> assertNotEqual(one.number, two.number
[01:31] <shakes808> I refactored it and forgot that :|
[01:32] <shakes808> Doesn't like the .number
[01:33] <shakes808> sweet!
[01:33] <shakes808> working now :)
[01:33] <shakes808> Thank you
[01:35] <rick_h_> party
[01:35] <shakes808> Trying to learn how to utilize unittest and then going to look at mock
[02:02] <shakes808> rick_h_: do you have time for one more?
[23:03] <rick_h_> hmm
[23:04] <rick_h_> evening from addison oaks campground