Beispiel #1
0
 def test_set_id(self):
     vocabulary = Vocabulary()
     some_id = 'some id'
     vocabulary.set_id(some_id)
     self.assertEqual(vocabulary.id, some_id)
Beispiel #2
0
 def test_set_id_arg_err(self):
     vocabulary = Vocabulary()
     some_id = 123
     with self.assertRaises(QtArgumentError):
         vocabulary.set_id(some_id)