Пример #1
0
    def test_get_reset(self):
        from libcellml import Error, Reset

        # ResetPtr getReset() const;
        e = Error()
        self.assertIsNone(e.getReset())
        name = 'res'
        r = Reset()
        r.setId(name)
        e.setReset(r)
        self.assertIsInstance(e.getReset(), Reset)
        self.assertEqual(e.getReset().getId(), name)
Пример #2
0
    def test_set_reset(self):
        from libcellml import Error, Reset

        # void setReset(const ResetPtr &reset);
        e = Error()
        e.setReset(Reset())