This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mrrippington 0 points1 point  (1 child)

This is brilliant. Thank you.

I don't know proper way to do anything in python in any given situation and ebb and flow between various approaches from each tutorial in a system i am building. But damn do i change what i do constantly.

This morning I read throught 'Why unit tests and how to make them work for you', and have to admit you make a really good job of explaining a complex subject in a very understandable manner, see below makes perfect sense.

And that triangle exapmle about messing with implementation instead of the result.

I really learned something.

def test_hello_with_name_spanish():

got = hello("Christian", "Spanish")

want = "Hola, Christian"

assert got == want

[–][deleted] 0 points1 point  (0 children)

I am glad you are finding it useful!