def test_no_such_attribute_on_other(self): with self.assertRaises(ValidationError): validate_fieldspec(BreadTestModel, "other__petunias")
def test_reverse_one_to_one_rel(self): validate_fieldspec(BreadLabelValueTestModel, "model2__text")
def test_get_other(self): validate_fieldspec(BreadTestModel, "other")
def test_method_on_other(self): validate_fieldspec(BreadTestModel, "other__get_text")
def test_method_with_optional_arg(self): validate_fieldspec(BreadTestModel, "method2")
def test_method_with_required_arg(self): with self.assertRaises(ValidationError): validate_fieldspec(BreadTestModel, "method1")
def test_simple_field(self): validate_fieldspec(BreadTestModel, "name")
def test_method_name(self): validate_fieldspec(BreadTestModel, "get_name")
def test_simple_field(self): validate_fieldspec(BreadTestModel, 'name')
def test_method_name(self): validate_fieldspec(BreadTestModel, 'get_name')
def test_no_such_attribute_on_other(self): with self.assertRaises(ValidationError): validate_fieldspec(BreadTestModel, 'other__petunias')
def test_method_on_other(self): validate_fieldspec(BreadTestModel, 'other__get_text')
def test_get_other(self): validate_fieldspec(BreadTestModel, 'other')
def test_method_with_required_arg(self): with self.assertRaises(ValidationError): validate_fieldspec(BreadTestModel, 'method1')
def test_method_with_optional_arg(self): validate_fieldspec(BreadTestModel, 'method2')