Did I find the right examples for you? yes no

All Samples(215)  |  Call(215)  |  Derive(0)  |  Import(0)

src/k/a/Kawaz-HEAD/src/Kawaz/bugwaz/tests/models.py   Kawaz(Download)
    def new_report(self,product):
        self.report_name = 'label'+hashlib.sha384(str(time())).hexdigest()
        return Report.objects.create(
                product = product,
                label=self.report_name,

src/c/a/candideitorg-django-0.0.1/candidator/report_objects/tests.py   candideitorg-django(Download)
    def test_create(self):
        user, created = User.objects.get_or_create(username='asd')
        report = Report.objects.create(content_object=user, reason='reason lorem ipsum')
        self.assertEquals(report.content_object, user)
        self.assertEquals(report.reason, 'reason lorem ipsum')
 
    def test_create_with_owner(self):
        user, created = User.objects.get_or_create(username='asd')
        report = Report.objects.create(content_object=user, reason='reason lorem ipsum', owner=user)

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/tests/regressiontests/queries/tests.py   appscale(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

src/a/p/appscale-HEAD/AppServer/lib/django-1.4/tests/regressiontests/queries/tests.py   appscale(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

src/a/p/appscale-HEAD/AppServer/lib/django-1.3/tests/regressiontests/queries/tests.py   appscale(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

src/g/o/google-app-engine-HEAD/lib/django-1.5/tests/regressiontests/queries/tests.py   google-app-engine(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

src/g/o/google-app-engine-HEAD/lib/django-1.4/tests/regressiontests/queries/tests.py   google-app-engine(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

src/g/o/google-app-engine-HEAD/lib/django-1.3/tests/regressiontests/queries/tests.py   google-app-engine(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

src/g/o/googleappengine-python-HEAD/lib/django-1.4/tests/regressiontests/queries/tests.py   googleappengine-python(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

src/g/o/googleappengine-python-HEAD/lib/django-1.3/tests/regressiontests/queries/tests.py   googleappengine-python(Download)
        i4.tags = [t4]
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        Report.objects.create(name='r2', creator=a3)
        Report.objects.create(name='r3')
        self.a3 = Author.objects.create(name='a3', num=3003, extra=e2)
 
        self.r1 = Report.objects.create(name='r1', creator=self.a1)
        self.r2 = Report.objects.create(name='r2', creator=self.a3)
        self.r3 = Report.objects.create(name='r3')

  1 | 2 | 3 | 4  Next