Commits

illume committed 53eaf34

ARRRG. I wonder how this color tastes pickled? Let's test it shall we.

Comments (0)

Files changed (1)

test/color_test.py

         # TODO: test against statically defined verified _correct_ values
         # assert corrected.r == 125 etc.
 
+
+    def test_pickle(self):
+        import pickle
+        c1 = pygame.Color(1,2,3,4)
+        #c2 = pygame.Color(255,254,253,252)
+        pickle_string = pickle.dumps(c1)
+        c1_frompickle = pickle.loads(pickle_string)
+        self.assertEqual(c1,c1_frompickle) 
+
+
+
 ################################################################################
 
 if __name__ == '__main__':