In article <[email protected]>, Ben Finney <[email protected]> wrote:
> Roy Smith <[email protected]> writes: > > > I've got some unit tests that look like: > > > > class Foo(TestCase): > > def test_t1(self): > > RECEIPT = "some string" > > > > def test_t2(self): > > RECEIPT = "some other string" > > > > def test_t3(self): > > RECEIPT = "yet a third string" > > > > and so on. > > That looks like a poorly defined class. > > Are the test cases pretty much identical other than the data in those > strings? No, each test is quite different. The only thing they have in common is they all involve a string representation of a transaction receipt. I elided the actual test code in my example above because it wasn't relevant to my question. -- https://mail.python.org/mailman/listinfo/python-list
