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