示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def test_FilePathField(self):
     self.assertIsInstance(FilePathField().get_prep_value('tests.py'), unicode)
     self.assertIsInstance(FilePathField().get_prep_value(0), unicode)