def test_complete_attributes(self):
        colorspace = REC709
        outlutfile = os.path.join(self.tmp_dir, "default_ascii_1D.lut")
        default_preset = ASCII_HELPER.get_default_preset()
        cust_preset = {}
        cust_preset = ASCII_HELPER.complete_preset(cust_preset)
        expression = set(default_preset).issubset(set(cust_preset))
        self.assert_(expression,
                     ("Something went wrong in preset completion :\n"
                      "Completed preset:\n{0}\nDefault one:\n{1}"
                      ).format(cust_preset, default_preset))
        ASCII_HELPER.check_preset(cust_preset)
        # try to write a float ascii lut without forcing float mode
        cust_preset[presets.IN_RANGE] = [0, 1.0]
        self.failUnlessRaises(PresetException, ASCII_HELPER.write_1d_lut,
                              colorspace.decode_gradation,
                              outlutfile,
                              cust_preset)
        # force float mode
        cust_preset[presets.IS_FLOAT] = True
        ASCII_HELPER.write_1d_lut(colorspace.decode_gradation,
                                  outlutfile,
                                  cust_preset)
Test that other errors during connect() sequences are still handled.
dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/abstract_lut_test.py/AbstractLUTTest.test_complete_attributes--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py/TestCiscoPortsV2.test_ncclient_fail_on_second_connect