Live data from Hacker News

How to write the simplest unittests in Python

gradstein.info

1–2 of 2 posts

Re: How to write the simplest unittests in Python

#2
I thought that `import unittest; def TestMyModule(unittest.TestCase): def test_simple(self): self.assert_equal(1,1)` was short enough, it is shorter than the ruby equivalent and all that `nose` stuff ends up being the same thing as writing the same kind of stuff in a Rakefile...