def setUp(self): """ Creates an authenticated session using a dummy user. """ #add a dummy user self.user = tests_assets.get_sample_creator() self.collection = tests_assets.get_sample_collection() self.user.save() self.collection.save() self.usercollections = tests_assets.get_sample_usercollections(self.user, self.collection) self.usercollections.save()
def setUp(self): """ Creates an authenticated session using a dummy user. """ #add a dummy user self.user = tests_assets.get_sample_creator() self.collection = tests_assets.get_sample_collection() self.user.save() self.collection.save() self.usercollections = tests_assets.get_sample_usercollections(self.user, self.collection) self.usercollections.save() self.client = Client() self.client.login(username='******', password='******')