示例#1
0
    def setUp(self):
        super(APITests, self).setUp()
        self.user1, self.client1 = create_user(username='******',
                                               password='******',
                                               first_name='Alice',
                                               last_name='Flowers')
        self.user2, self.client2 = create_user(username='******',
                                               password='******',
                                               first_name='Bob',
                                               last_name='Smith')

        self.namespace1 = Namespace.objects.create(name='Joe Biden',
                                                   owner=self.user1)
示例#2
0
	def setUp(self):
		super(APITests, self).setUp()
		self.user1, self.client1 = create_user(username='******', password='******', first_name='Alice', last_name='Flowers')
		self.work_doc1 = self.user1.work_doc
		self.user2, self.client2 = create_user(username='******', password='******', first_name='Bob', last_name='Smith')
		self.work_doc2 = self.user2.work_doc
示例#3
0
	def setUp(self):
		super(APITests, self).setUp()
		self.user1, self.client1 = create_user(username='******', password='******', first_name='Alice', last_name='Flowers')
		self.user2, self.client2 = create_user(username='******', password='******', first_name='Bob', last_name='Smith')

		self.namespace1 = Namespace.objects.create(name='Joe Biden', owner=self.user1)