Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-class-backed-field-0.1/tests/test.py   django-class-backed-field(Download)
from .models import TestModel, ListFromString
from django.utils import unittest
 
 
class ModelFieldTests(unittest.TestCase):
    def test_retriving_field_by_instance(self):
        obj = TestModel.objects.create(strings=self.alpha)
        TestModel.objects.create(strings=self.alternative_id)
        TestModel.objects.create(strings=self.another_id)
        list_from_string = ListFromString(self.alpha)