def test_replace_user_variables(self): user = UserProperties("wkc26243") user.set_user_properties(self.instrument,self.rbdir,self.cycle,self.start_date) targ_string = user.replace_variables('$instrument$ReductionScript$cycleID$.py') self.assertEqual(self.instrument+'ReductionScript2015_1.py',targ_string) self.assertEqual(user.GID,'1310168')
def test_replace_user_variables(self): user = UserProperties("wkc26243") user.set_user_properties(self.instrument, self.rbdir, self.cycle, self.start_date) targ_string = user.replace_variables( '$instrument$ReductionScript$cycleID$.py') self.assertEqual(self.instrument + 'ReductionScript2015_1.py', targ_string) self.assertEqual(user.GID, '1310168')