  from django.test import TestCase
  from djangorestframework.compat import RequestFactory
  from pygments_api import views
  import os, tempfile, shutil, time, json
  
  class TestPygmentsExample(TestCase):
  
      def setUp(self):
          self.factory = RequestFactory()
 
</s> remove     """For the example the maximum amount of Blogposts is capped off at 10. 
 </s> add     """For the example the maximum amount of Blogposts is capped off at views.MAX_POSTS.  </s> remove from djangorestframework import status
 </s> add  </s> remove from djangorestframework.response import Response
from djangorestframework.resource import Resource
 </s> add 
import tempfile, shutil, json

  from django.test import TestCase
  from djangorestframework.compat import RequestFactory
  from pygments_api import views
import tempfile, shutil, json
  
  class TestPygmentsExample(TestCase):
  
      def setUp(self):
          self.factory = RequestFactory()
keep keep keep replace keep keep keep keep keep
 Refactoring and added another test for blog-posts. Finally got eclipse setup properly with virtualenvs (code analysis). Also I think  I get Bitbuckets workflow now. 
examples/pygments_api/tests.py