title: Import only a class static method
body: <p>I have the following decorator in a base class:</p>
  
  <pre><code>class BaseTests(TestCase):
      @staticmethod
      def check_time(self, fn):
          @wraps(fn)
          def test_wrapper(*args,**kwargs):
              # do checks ...
          return test_wrapper
  </code></pre>
  
  <p>And the following class inheriting from BaseTests:</p>
  
  <pre><code>from path.base_posting import BaseTests
  from path.base_posting.BaseTests import check_time  # THIS LINE DOES NOT WORK!
  
  class SpecificTest(BaseTests):
  
      @check_time # use the decorator
      def test_post(self):
          # do testing ...
  </code></pre>
  
  <p>I would like to use the decorator in SpecificTest as above, without having to use BaseTests.check_time, because in the original code they have long names, and I have to use it in many places. Any ideas?</p>
  
  <p>EDIT:
  I decided to make check_time an independent function in BaseTests file, and simply import</p>
  
  <pre><code>from path.base_posting import BaseTests, check_time
  </code></pre>