def test_CountingIncedenceError(self): m = Matrix(2, 3) m.addString([0, 2, 1]) self.assertRaises(ValueError, m.countingIncedence())
def test_CountingIncedence(self): m = Matrix(2, 2) m.addString([1, 0]) m.addString([0, 1]) self.assertEqual(2, m.countingIncedence())