'Try to rebuild a new style class with slots defined.'

def test_slots(self):

    classDefinition = "class    SlottedClass(object):\n                __slots__    =    ['a']\n"
    exec classDefinition in self.m.__dict__
    inst = self.m.SlottedClass()
    inst.a = 7
    exec classDefinition in self.m.__dict__
    rebuild.updateInstance(inst)
    self.assertEqual(inst.a, 7)
    self.assertIs(type(inst), self.m.SlottedClass)
