Пример #1
0
    def setUp(self):
        from accounts.tests import create_users

        self.user, self.gov = create_users()

        self.n = dispatch.send(
            self.user,
            "F**k you! {{user.nickname}}",
            '/api/n/',
            "greet",
        )
Пример #2
0
 def setUp(self):
     self.user, self.gov = create_users()
     self.client.force_authenticate(self.user)
     self.key = utils.upload_file('./files/test_files/testfile.txt')
Пример #3
0
 def setUp(self):
     raise SkipTest
     self.user, self.gov = create_users()
     self.client.force_authenticate(self.user)
Пример #4
0
 def setUp(self):
     self.user, self.gov = create_users()
Пример #5
0
 def setUp(self):
     self.user, self.gov = create_users()
     self.topic = Topic.objects.create(title='title',
                                       content='content',
                                       asker=self.user)
Пример #6
0
 def setUp(self):
     self.user, self.gov = create_users()
Пример #7
0
 def setUp(self):
     raise SkipTest
     self.user, self.gov = create_users()
     self.client.force_authenticate(self.user)
Пример #8
0
 def setUp(self):
     self.user, self.gov = create_users()
     self.client.force_authenticate(self.user)
     self.key = utils.upload_file('./files/test_files/testfile.txt')