def test_FilePathField(self): lazy_func = lazy(lambda: 'tests.py', six.text_type) self.assertIsInstance(FilePathField().get_prep_value(lazy_func()), six.text_type) lazy_func = lazy(lambda: 0, int) self.assertIsInstance(FilePathField().get_prep_value(lazy_func()), six.text_type)
def test_FilePathField(self): self.assertIsInstance(FilePathField().get_prep_value('tests.py'), six.text_type) self.assertIsInstance(FilePathField().get_prep_value(0), six.text_type)
def test_FilePathField(self): self.assertIsInstance(FilePathField().get_prep_value('tests.py'), unicode) self.assertIsInstance(FilePathField().get_prep_value(0), unicode)