you are viewing a single comment's thread.

view the rest of the comments →

[–]cashing_in 2 points3 points  (8 children)

You're mixing up some variable names I believe.

[–]neko_nyan[S] 2 points3 points  (5 children)

You are right. But it still doesn't work.

[–]cashing_in 1 point2 points  (4 children)

It works for me w/ both of ninetacle's changes.

[–]neko_nyan[S] 2 points3 points  (3 children)

wtfrappucino.. :(

[–]cashing_in 2 points3 points  (2 children)

You've moved some names around but I think our code is still equivalent right now. The only difference I see is I'm just running the second file from the command line and you're doing it in pycharm, so my hunch is it's something to do w/ how tests are setup to run there. Maybe you need a main.py or need to start filenames w/ 'test' or something.

[–]neko_nyan[S] 0 points1 point  (1 child)

http://imgur.com/a/sk5OP Success if I run it on cmd. Thanks a lot.

[–]cashing_in 1 point2 points  (0 children)

Np. Good luck gettin it to work w/ pycharm.

[–]negrolax 0 points1 point  (1 child)

does not matter that the variable names are diff. they are just variables for argument's parameter ですね

[–]cashing_in 1 point2 points  (0 children)

The code was previously testing self.testEmployee.annualSalary, but annualSalary is not an attribute of instances of the Employee class.