def test_builder(self):
     final_dict = {}
     database_builder(TEST_FULL_DATA, final_dict)
     assert("ThingKnob" in final_dict["ThingContainer"] and\
            "ButtonColor" in final_dict["ThingContainer"]["ThingButton"] and\
            final_dict["ThingContainer"]["ThingButton"]["ButtonColor"]["description"]=="Color of the button." and\
            final_dict["ThingContainer"]["ThingButton"]["ButtonActuation"]["required"]==True)
    def test_enum_w_empty_annotation(self):
        final_dict = {}
        database_builder({"ThingType": "|RackMount | Cheap | Expensive | Obsolete | Trendy|"}, final_dict)

        assert(all([True if item in ["RackMount", "Cheap", "Expensive", "Obsolete", "Trendy"] else False \
                    for item in final_dict['ThingType']['value']]))
    def test_enum_annotation(self):
        final_dict = {}
        database_builder(TEST_FULL_DATA, final_dict)

        assert(all([True if item in ["RackMount", "Cheap", "Expensive", "Obsolete", "Trendy"] else False \
                    for item in final_dict['ThingType']['value']]))
    def test_required_annotation(self):
        final_dict = {}
        database_builder(TEST_FULL_DATA, final_dict)

        assert(final_dict['ThingType']['required'] == True)
    def test_readwrite_annotation(self):
        final_dict = {}
        database_builder(TEST_FULL_DATA, final_dict)

        assert(final_dict['IndicatorLED']['readwrite'] == True)
    def test_link_annotation(self):
        final_dict = {}
        database_builder(TEST_FULL_DATA, final_dict)

        assert(final_dict['PCIeSlots']['link'] == "PCIeDevice")
    def test_longdescription_annotation(self):
        final_dict = {}
        database_builder(TEST_FULL_DATA, final_dict)

        assert(final_dict['ThingType']['longdescription'] == "A long thingy description...")
    def test_description_annotation(self):
        final_dict = {}
        database_builder(TEST_FULL_DATA, final_dict)

        assert(final_dict['ThingType']['description'] == "The type of thingy that this thingy is - really...")