def random_things(self): things = [1, 3.1415, QWidget(), None, ['a', 'list'], {'a': 'dict'}, ('a', 'long', 'tuple')] for thing in things: with self.assertRaises(ValueError): _process_slots(thing)
def test_slot_with_None(self): x = ('signalname', None) assert _process_slots(x) == ('signalname', None)
def test_complete_slot(self): x = ('signalname', min) assert _process_slots(x) == ('signalname', min)
def test_callable(self): x = min assert _process_slots(x) == ('default', min)
def test_specials(self): for x in _specials: assert _process_slots(x) is x