标签:.com any 单元 should set exception cti 测试框架 except
class TestSequenceFunctions(unittest.TestCase): def setUp(self): self.seq = range(10) def test_shuffle(self): # make sure the shuffled sequence does not lose any elements random.shuffle(self.seq) self.seq.sort() self.assertEqual(self.seq, range(10)) # should raise an exception for an immutable sequence self.assertRaises
标签:.com any 单元 should set exception cti 测试框架 except
原文地址:http://www.cnblogs.com/vigo01/p/6920221.html