Created
October 2, 2013 00:16
-
-
Save brianray/6787239 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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