def test_multiple_regular(self):
     class A(object):
         def do_something(self):
             pass
         def do_something_else(self):
             pass
         def stop(self):
             pass
     self.assertSetEqual(set(['do_something', 'do_something_else', 'stop']),
                         _regular_method_names(A))
 def test_attribute(self):
     class A(object):
         do_something = 'nothing'
     self.assertSetEqual(set(), _regular_method_names(A))
 def test_staticmethod(self):
     class A(object):
         @staticmethod
         def do_something(self):
             pass
     self.assertSetEqual(set(), _regular_method_names(A))
 def test_one_regular(self):
     class A(object):
         def do_something(self):
             pass
     self.assertSetEqual(set(['do_something']), _regular_method_names(A))
 def test_no_regulars(self):
     class A(object):
         pass
     self.assertSetEqual(set(), _regular_method_names(A))