@staticmethod
    def _flag(flag_name, bool_value):
        elm = etree.Element(flag_name)
        elm.text = "true" if bool_value else "false"
        return elm
Assert that a directory is equivalent to one described by a dict.
dataset/ETHPy150Open Blazemeter/taurus/bzt/jmx.py/JMX._flag--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/StructureAssertingMixin.assertStructure