from django.db import models
from django.conf import settings

def foo(a):
    return a + 5

def test_foo():
    assert foo(5) == 10
Python unittest: how to satisfy nose coverage for importing packages