

def test_event_emitted_when_class_created(self):
    self.load('test', self.model, self.defs)
    self.assertTrue(self.emitter.emit.called)
    call_args = self.emitter.emit.call_args
    self.assertEqual(call_args[0][0], 'creating-resource-class.test.ServiceResource')
    actual_class_attrs = sorted(self[1]['class_attributes'])
    self.assertEqual(actual_class_attrs, ['Message', 'PriorityQueue', 'QueueObject', 'get_available_subresources', 'meta'])
    base_classes = sorted(call_args[1]['base_classes'])
    self.assertEqual(base_classes, [ServiceResource])

dataset/ETHPy150Open boto/boto3/tests/unit/resources/test_factory.py TestServiceResourceSubresources.test_event_emitted_when_class_created/VarMisuse@67/101 `call_args`->`self`