def test_rebot_conf(self): opt = self._options.copy() opt['suite'] = ['s1', 's2'] opt['test'] = ['t1', 't2'] opt['include'] = ['tag'] opt['exclude'] = ['nontag'] options = pabot._options_for_rebot(opt, "starttime", "endtime") self.assertEqual(options['suite'], []) self.assertEqual(options['test'], []) self.assertEqual(options['include'], []) self.assertEqual(options['exclude'], []) for key in self._options: self.assertEqual(options[key], self._options[key])
def test_rebot_conf(self): opt = self._options.copy() opt["suite"] = ["s1", "s2"] opt["test"] = ["t1", "t2"] opt["include"] = ["tag"] opt["exclude"] = ["nontag"] options = pabot._options_for_rebot(opt, "starttime", "endtime") self.assertEqual(options["suite"], []) self.assertEqual(options["test"], []) self.assertEqual(options["include"], []) self.assertEqual(options["exclude"], []) for key in self._options: self.assertEqual(options[key], self._options[key])