'Check that classes are using slots and are weak-referenceable'

def test_weakref_slots(self):

    x = Selector(text='')
    weakref.ref(x)
    assert (not hasattr(x, '__dict__')), ('%s    does    not    use    __slots__' % x.__class__.__name__)
