コード例 #1
0
 def test_no_such_attribute_on_other(self):
     with self.assertRaises(ValidationError):
         validate_fieldspec(BreadTestModel, "other__petunias")
コード例 #2
0
 def test_reverse_one_to_one_rel(self):
     validate_fieldspec(BreadLabelValueTestModel, "model2__text")
コード例 #3
0
 def test_get_other(self):
     validate_fieldspec(BreadTestModel, "other")
コード例 #4
0
 def test_method_on_other(self):
     validate_fieldspec(BreadTestModel, "other__get_text")
コード例 #5
0
 def test_method_with_optional_arg(self):
     validate_fieldspec(BreadTestModel, "method2")
コード例 #6
0
 def test_method_with_required_arg(self):
     with self.assertRaises(ValidationError):
         validate_fieldspec(BreadTestModel, "method1")
コード例 #7
0
 def test_simple_field(self):
     validate_fieldspec(BreadTestModel, "name")
コード例 #8
0
 def test_method_name(self):
     validate_fieldspec(BreadTestModel, "get_name")
コード例 #9
0
ファイル: test_utils.py プロジェクト: caktus/django_bread
 def test_simple_field(self):
     validate_fieldspec(BreadTestModel, 'name')
コード例 #10
0
ファイル: test_utils.py プロジェクト: caktus/django_bread
 def test_method_name(self):
     validate_fieldspec(BreadTestModel, 'get_name')
コード例 #11
0
ファイル: test_utils.py プロジェクト: caktus/django_bread
 def test_no_such_attribute_on_other(self):
     with self.assertRaises(ValidationError):
         validate_fieldspec(BreadTestModel, 'other__petunias')
コード例 #12
0
ファイル: test_utils.py プロジェクト: caktus/django_bread
 def test_method_on_other(self):
     validate_fieldspec(BreadTestModel, 'other__get_text')
コード例 #13
0
ファイル: test_utils.py プロジェクト: caktus/django_bread
 def test_get_other(self):
     validate_fieldspec(BreadTestModel, 'other')
コード例 #14
0
ファイル: test_utils.py プロジェクト: caktus/django_bread
 def test_method_with_required_arg(self):
     with self.assertRaises(ValidationError):
         validate_fieldspec(BreadTestModel, 'method1')
コード例 #15
0
ファイル: test_utils.py プロジェクト: caktus/django_bread
 def test_method_with_optional_arg(self):
     validate_fieldspec(BreadTestModel, 'method2')