  
  from django.test import TestCase
  from django.core.urlresolvers import reverse
  from blogpost import views, models
  
  #import json
  #from rest.utils import xml2dict, dict2xml
  
  class AcceptHeaderTests(TestCase):
 
</s> remove import os, tempfile, shutil, time, json
 </s> add import tempfile, shutil, json
 </s> remove from djangorestframework.response import Response
from djangorestframework.resource import Resource
 </s> add  </s> remove from djangorestframework import status
 </s> add  </s> remove 
 </s> add MAX_POSTS = 10
import blogpost
  
  from django.test import TestCase
  from django.core.urlresolvers import reverse
  from blogpost import views, models
import blogpost
  
  #import json
  #from rest.utils import xml2dict, dict2xml
  
  class AcceptHeaderTests(TestCase):
keep keep keep add 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/blogpost/tests.py