761
761
for exp, got in zip(expected, fix_os_paths(f.choices)):
762
762
self.assertEqual(exp[1], got[1])
764
764
self.assertRaisesErrorWithMessage(ValidationError, "[u'Select a valid choice. fields.py is not one of the available choices.']", f.clean, 'fields.py')
765
765
assert fix_os_paths(f.clean(path + 'fields.py')).endswith('/django/forms/fields.py')
767
767
def test_filepathfield_67(self):
770
770
f = FilePathField(path=path, match='^.*?\.py$')