def setUp(self):
    super(AddCommitCmdsUserIdsMetadataJobTests, self).setUp()
    self.collection_rights_model_swap = self.swap(collection_models, 'CollectionRightsModel', MockCollectionRightsModel)
    self.exploration_rights_model_swap = self.swap(exp_models, 'ExplorationRightsModel', MockExplorationRightsModel)
    self.topic_rights_model_swap = self.swap(topic_models, 'TopicRightsModel', MockTopicRightsModel)
    self.signup(self.EMAIL_1, self.USERNAME_1)
    self.signup(self.EMAIL_2, self.USERNAME_2)
    self.USER_1_ID = self.get_user_id_from_email(self.EMAIL_1)
    self.USER_2_ID = self.get_user_id_from_email(self.EMAIL_2)
    self.USER_GAE_1_ID = self.get_gae_id_from_email(self.EMAIL_1)
    self.USER_GAE_2_ID = self.get_gae_id_from_email(self.EMAIL_2)
def setUp(self):
    super(AddCommitCmdsUserIdsMetadataJobTests, self).setUp()
    self.collection_rights_model_swap = self.swap(collection_models, 'CollectionRightsModel', MockCollectionRightsModel)
    self.exploration_rights_model_swap = self.swap(exp_models, 'ExplorationRightsModel', MockExplorationRightsModel)
    self.topic_rights_model_swap = self.swap(topic_models, 'TopicRightsModel', MockTopicRightsModel)
    self.signup(self.EMAIL_1, self.USERNAME_1)
    self.signup(self.EMAIL_2, self.USERNAME_2)
    self.USER_1_ID = self.get_user_id_from_email(self.EMAIL_1)
    self.USER_2_ID = self.get_user_id_from_email(self.EMAIL_2)
    self.USER_GAE_1_ID = self.get_gae_id_from_email(self.EMAIL_1)
    self.USER_GAE_2_ID = self.get_gae_id_from_email(self.EMAIL_2)