Example #1
0
    def test_is_order_set(self):
        from libcellml import Reset

        # bool isOrderSet()
        x = Reset()
        self.assertFalse(x.isOrderSet())
        x.setOrder(2)
        self.assertTrue(x.isOrderSet())
Example #2
0
    def test_unset_order(self):
        from libcellml import Reset

        # unsetOrder()
        x = Reset()
        x.setOrder(-4)
        self.assertTrue(x.isOrderSet())
        x.unsetOrder()
        self.assertFalse(x.isOrderSet())
Example #3
0
    def test_unset_order(self):
        from libcellml import Reset

        # removeOrder()
        x = Reset()
        x.setOrder(-4)
        self.assertTrue(x.isOrderSet())
        x.removeOrder()

        self.assertFalse(x.isOrderSet())
        self.assertEqual(0, x.order())
Example #4
0
    def test_set_order(self):
        from libcellml import Reset

        x = Reset()
        x.setOrder(3)
        self.assertEqual(3, x.order())