def test_load_option_uncommitted(self):
     c = ReviewConfiguration()
     c.load([])
     self.assertEqual(c.get_option("uncommitted"), "false")
     c = ReviewConfiguration()
     c.load(["@uncommitted = false"])
     self.assertEqual(c.get_option("uncommitted"), "false")
     c = ReviewConfiguration()
     c.load(["@uncommitted = true"])
     self.assertEqual(c.get_option("uncommitted"), "true")
     c = ReviewConfiguration()
     c.load(["@uncommitted=true"])
     self.assertEqual(c.get_option("uncommitted"), "true")
 def test_error_for_getting_invalid_option(self):
     c = ReviewConfiguration()
     with self.assertRaisesRegexp(ExecutionError, "invalid config option"):
         c.get_option("does_not_exist")
 def test_uncommitted_selected(self):
     c = ReviewConfiguration()
     c.set_option("uncommitted", "true")
     self.assertEqual(c.get_option("uncommitted"), "true")
 def test_uncommitted_option_default_value(self):
     c = ReviewConfiguration()
     self.assertEqual(c.get_option("uncommitted"), "false")