(self, c, factory)
| 856 | self.assertRaises(TclError, factory, joinstyle='spam') |
| 857 | |
| 858 | def _test_option_smooth(self, c, factory): |
| 859 | for smooth in 1, True, '1', 'true', 'yes', 'on': |
| 860 | i = factory(smooth=smooth) |
| 861 | self.assertEqual(c.itemcget(i, 'smooth'), 'true') |
| 862 | for smooth in 0, False, '0', 'false', 'no', 'off': |
| 863 | i = factory(smooth=smooth) |
| 864 | self.assertEqual(c.itemcget(i, 'smooth'), '0') |
| 865 | i = factory(smooth=True, splinestep=30) |
| 866 | self.assertEqual(c.itemcget(i, 'smooth'), 'true') |
| 867 | self.assertEqual(c.itemcget(i, 'splinestep'), '30') |
| 868 | i = factory(smooth='raw', splinestep=30) |
| 869 | self.assertEqual(c.itemcget(i, 'smooth'), 'raw') |
| 870 | self.assertEqual(c.itemcget(i, 'splinestep'), '30') |
| 871 | self.assertRaises(TclError, factory, smooth='spam') |
| 872 | |
| 873 | def test_create_rectangle(self): |
| 874 | c = self.create() |
no test coverage detected