def test_recalc_color_list(self):
		ginga.colors.color_dict["test_color_white"] = (0.0, 0.0, 0.0)

		expected = len(ginga.colors.color_dict) - 1 
		actual = len(ginga.colors.color_list)
		assert expected == actual

		ginga.colors.recalc_color_list()

		expected = len(ginga.colors.color_dict)
		actual = len(ginga.colors.color_list)
		assert expected == actual

		del ginga.colors.color_dict["test_color_white"]

		expected = len(ginga.colors.color_dict) + 1
		actual = len(ginga.colors.color_list)
		assert expected == actual

		ginga.colors.recalc_color_list()

		expected = len(ginga.colors.color_dict)
		actual = len(ginga.colors.color_list)
		assert expected == actual

	# Tests for scan_rgbtxt_buf() function
dataset/ETHPy150Open ejeschke/ginga/ginga/tests/test_colors.py/TestColors.test_recalc_color_list/original