def test_set_id(self): model = Model() model.set_id('some id') self.assertEqual(model.id, 'some id')
def test_set_id_arg_err(self): model = Model() some_id = 123 with self.assertRaises(QtArgumentError): model.set_id(some_id)