def METHOD_NAME(self):
    options = {
        'key1': 'value1',
        'key2': 2,
        'key3': {
            'key3-1': 3,
            'key3-2': 4,
        },
        'key4': ['a', 'b', 'c', {"key4-3-1": 5}],
    }
    self.patch_object(g, '_options', new=options)
    self.assertEqual(g.get_option("key1"), "value1")
    self.assertEqual(g.get_option("key2"), 2)
    self.assertEqual(g.get_option("key3.key3-1"), 3)
    self.assertEqual(g.get_option("key3.key3-2"), 4)
    self.assertEqual(g.get_option("key4.3.key4-3-1"), 5)