News for hackers. Stuff that matters.
Re:Old school developers - achieving a lot with little by chubot on Saturday July 21, 2012 @12:57PM (#4275166)
Yup, I remember when I was learning Python, before I ever wrote any real tests, all my modules would be littered with:

  if arg[1] == 'test1':
    print func1(a)

  elif arg[1] == 'test2':
    print func1(b)

  elif arg[1] == 'test3':
    print func2(a)

  ...
Eventually I found it was way easier to stick this in a _test.py file :)

There are no comments on this comment yet.