def METHOD_NAME(self):
    self.patch_object(g, '_options', new={})
    g.set_option("this.interesting.key", 1)
    self.assertEqual(g._options['this']['interesting']['key'], 1)
    g.set_option("this.other.thing", 2)
    self.assertEqual(g._options['this']['interesting']['key'], 1)
    self.assertEqual(g._options['this']['other']['thing'], 2)
    g.set_option("this.list.1", 3)
    self.assertEqual(g._options['this']['list'][1], 3)
    self.assertEqual(g._options['this']['list'][0], None)
    g.set_option("this.list.1", "goodbye")
    self.assertEqual(g._options['this']['list'][1], "goodbye")
    # re-write an option type
    g.set_option("this.list.is", "on", override=True)
    self.assertEqual(g._options['this']['list']['is'], "on")