Example #1
0
 def setUp(self):
     self.c = Command()
     self.user = Profile.objects.create_user(username="******",
                                             email="[email protected],",
                                             password="******")
     test_image = os.path.join("tests", "fixtures", "images", "1x1.png")
     test_path = tempfile.mkdtemp()
     shutil.copy(test_image, test_path)
     self.image_path = os.path.join(test_path, "1x1.png")
     self.case = Case.objects.create(name="aaa", owner=self.user)
Example #2
0
 def setUp(self):
     self.c = Command()
     self.user = Profile.objects.create_user(username="******",
                                             email="[email protected],",
                                             password="******")