Пример #1
0
 def test_set_id(self):
     model = Model()
     model.set_id('some id')
     self.assertEqual(model.id, 'some id')
Пример #2
0
 def test_set_id_arg_err(self):
     model = Model()
     some_id = 123
     with self.assertRaises(QtArgumentError):
         model.set_id(some_id)