def test_secondorder(self): ctx = Context(2, 2) ctx.add(1) ctx.add(2) self.assertTrue(ctx.to_dimension() == (9, 1))
def test_fistorder(self): ctx = Context(1) ctx.add(0) self.assertTrue(ctx.to_dimension() == (0, 1))