(self)
| 95 | Variable(self.root, name=123) |
| 96 | |
| 97 | def test_null_in_name(self): |
| 98 | with self.assertRaises(ValueError): |
| 99 | Variable(self.root, name='var\x00name') |
| 100 | with self.assertRaises(ValueError): |
| 101 | self.root.globalsetvar('var\x00name', "value") |
| 102 | with self.assertRaises(ValueError): |
| 103 | self.root.globalsetvar(b'var\x00name', "value") |
| 104 | with self.assertRaises(ValueError): |
| 105 | self.root.setvar('var\x00name', "value") |
| 106 | with self.assertRaises(ValueError): |
| 107 | self.root.setvar(b'var\x00name', "value") |
| 108 | |
| 109 | def test_initialize(self): |
| 110 | v = Var(self.root) |
nothing calls this directly
no test coverage detected