def setUpModels(self):
     from petstore_api.model import category, tag
     self.category = category.Category()
     self.category.id = id_gen()
     self.category.name = "dog"
     self.tag = tag.Tag()
     self.tag.id = id_gen()
     self.tag.name = "python-pet-tag"
     self.pet = pet.Pet(name="hello kity", photo_urls=["http://foo.bar.com/1", "http://foo.bar.com/2"])
     self.pet.id = id_gen()
     self.pet.status = "sold"
     self.pet.category = self.category
     self.pet.tags = [self.tag]
 def setUpModels(cls):
     cls.category = category.Category()
     cls.category.id = id_gen()
     cls.category.name = "dog"
     cls.tag = tag.Tag()
     cls.tag.id = id_gen()
     cls.tag.name = "python-pet-tag"
     cls.pet = pet.Pet(
         name="hello kity",
         photo_urls=["http://foo.bar.com/1", "http://foo.bar.com/2"])
     cls.pet.id = id_gen()
     cls.pet.status = "sold"
     cls.pet.category = cls.category
     cls.pet.tags = [cls.tag]