Esempio n. 1
0
    def test_set_description(self):
        from libcellml import Error

        # void setDescription(const std::string &description)
        e = Error()
        e.setDescription('hello')
        e.setDescription('')
Esempio n. 2
0
    def test_get_description(self):
        from libcellml import Error

        # std::string getDescription()
        d = 'hi'
        e = Error()
        self.assertEqual(e.getDescription(), '')
        e.setDescription(d)
        self.assertEqual(e.getDescription(), d)
        del (d, e)