human
Solve the following python programming problem given the following code:
def test_action_methods_manager_mixin(self) : 
    '
        Test if action methods specified on managers using action_methods
        class field are registered with viewset
        ' 
    class MockManager (SessionMixin, AlchemyModelManager) : 
        model_class = mock.Mock () 
        action_methods = { 
            'method_name' : ['POST', 'DELETE'], 
} 
        def method_name(self, data, pk = None, **kwargs) : 
            return { 
                'status' : 'created', 
} 
class MockViewSet (viewsets.ViewSet, ManagerMixin) : 
        manager_class = MockManager 
viewset = MockViewSet () 
    self.assertTrue (hasattr (self, 'method_name')) 
    method = getattr (viewset, 'method_name') 
    self.assertTrue (hasattr (method, 'bind_to_methods')) 

    
    

    Fix the buggy line: self.assertTrue (hasattr (self, 'method_name'))
assistant
#Here is Python program to fix the buggy line: self.

self.assertTrue (hasattr (viewset, 'method_name'))