Skip to content

Instantly share code, notes, and snippets.

@brianray
Created October 2, 2013 00:16
Show Gist options
  • Save brianray/6787239 to your computer and use it in GitHub Desktop.
Save brianray/6787239 to your computer and use it in GitHub Desktop.
from django.test import TestCase
from core.transforms import filler
import mock
class FillerTest(TestCase):
#@mock.patch("core.transforms.filler._")
def test_filler(self): #, filler_func):
#filler_func.return_value = "blah"
#f = filler({'os': {'path': "//"}})
f = mock.MagicMock()
f._.return_value = "blah"
self.assertEqual( f._("os.path"), "blah")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment