Exemplo n.º 1
0
    def setUp(self):
        for category in self.categories:
            record = Category(name=category)
            record.save()

        for metatag in self.metatags:
            record = Metadata(name=metatag)
            record.save()
Exemplo n.º 2
0
 def setUp(self):
     contact = Contact()
     contact.first_name = "Jeffery"
     contact.last_name = "Smith"
     contact.email = "*****@*****.**"
     contact.save()
     category = Category(name='Device')
     category.save()
     for category in self.categories:
         Category(name=category).save()
Exemplo n.º 3
0
 def setUp(self):
     self.user.email = lambda: None
     setattr(self.user, 'email',
             '*****@*****.**')
     contact = Contact(email='*****@*****.**')
     contact.save()
     category = Category(name='Devices')
     category.save()
     for key in self.form_values.keys():
         category = Category(name=key)
         category.save()
Exemplo n.º 4
0
    def setUp(self):
        for category in self.categories:
            record = Category(name=category)
            record.save()

        for metatag in self.metatags:
            record = Metadata(name=metatag)
            record.save()

        category = Category.objects.all()
        metadata = Metadata.objects.all()
        for i in range(0, 3):
            for meta in metadata:
                tag = Tag(category=category[i],
                          metadata=meta
                          )
                tag.save()
Exemplo n.º 5
0
 def setUp(self):
     category = Category(name='Device')
     category.save()
     for category in self.categories:
         Category(name=category).save()