/srv/irclogs.ubuntu.com/2015/09/11/#ubuntu-us-mi.txt

shakes808Evening all01:10
rick_h_party01:11
shakes808How goes it?01:11
rick_h_not bad01:11
rick_h_replying to a work email I couldn't let sit over night or it'd drive me nuts :P01:12
shakes808that is why when I clock out, I don't look at them any longer :)01:12
rick_h_worldwide company makes that a pita01:12
rick_h_but yea, good policy to live by01:12
shakes808How's the fishing?01:13
rick_h_good, haven't been able to get out lately. been out of town and such01:13
rick_h_but taking the kayak to the campground this weekend, hopefully catch something01:13
shakes808gotcha.  saw that pike you caught, pretty nice.01:13
shakes808awesome!01:13
rick_h_yea, was doing the wed night thing for a while and always caught at least a few01:14
rick_h_nice time doing the kayak thing01:14
shakes808haven'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 down01:14
shakes808I have been wanting to pick one up, but nowhere to put it01:14
shakes808I know01:15
shakes808Had 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:16
rick_h_can try01:17
shakes808http://codeshare.io/V2A6b01:18
rick_h_never import *01:19
rick_h_does it import Dice?01:19
shakes808I had import GenericRoll from Dice01:19
shakes808and it didn't like it01:19
rick_h_if you import pdb;pdb.set_trace() in line 24 ?01:19
rick_h_no, you have to import the class01:19
rick_h_is the file really caps?01:19
rick_h_Dice.py?01:19
shakes808yes01:19
rick_h_from Dice import Dice01:20
rick_h_right, so you've got a class, you can't just test the function01:20
shakes808still getting the same error01:20
shakes808pasted in the IO01:22
shakes808Still can't reach the class01:22
shakes808should I prefix the function call with Dice.GenericRoll01:22
rick_h_http://paste.ubuntu.com/12332671/01:23
rick_h_it's just hand written, might need some more love01: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
shakes808alright, let me try.  makes sense to create the object :|  told ya newb stuff01:23
rick_h_all good01:23
shakes808Getting closer01:28
shakes808pasted my error again01:29
shakes808has to do with the assertNotEqual01:29
shakes808Doesn't look like it was able to get to my function?01:30
rick_h_shakes808: you never return a value01:30
rick_h_shakes808: so the value that comes out of your function is "None"01:30
rick_h_shakes808: try adding: return self.number01:30
shakes808derp01:30
shakes808yeah01:30
rick_h_or use the class01:30
rick_h_assertNotEqual(one.number, two.number01:31
shakes808I refactored it and forgot that :|01:31
shakes808Doesn't like the .number01:32
shakes808sweet!01:33
shakes808working now :)01:33
shakes808Thank you01:33
rick_h_party01:35
shakes808Trying to learn how to utilize unittest and then going to look at mock01:35
shakes808rick_h_: do you have time for one more?02:02
rick_h_hmm23:03
rick_h_evening from addison oaks campground23:04

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!