def test_pickle_complex(): #http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21908 if not (is_cli or is_silverlight): AreEqual(copy_reg.pickle_complex(1), (complex, (1, 0))) #negative tests AssertError(AttributeError, copy_reg.pickle_complex, "myargu") obj2 = myCustom2() AssertError(AttributeError, copy_reg.pickle_complex, obj2)
def test_pickle_complex(self): #http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21908 #if not is_cli: self.assertEqual(copy_reg.pickle_complex(1), (complex, (1, 0))) #negative tests self.assertRaises(AttributeError,copy_reg.pickle_complex,"myargu") obj2 = myCustom2() self.assertRaises(AttributeError,copy_reg.pickle_complex,obj2)
def test_pickle_complex(self): #http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21908 #if not is_cli: self.assertEqual(copy_reg.pickle_complex(1), (complex, (1, 0))) #negative tests self.assertRaises(AttributeError, copy_reg.pickle_complex, "myargu") obj2 = myCustom2() self.assertRaises(AttributeError, copy_reg.pickle_complex, obj2)
def test_pickle_complex(): #http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21908 if not (is_cli or is_silverlight): AreEqual(copy_reg.pickle_complex(1), (complex, (1, 0))) #negative tests AssertError(AttributeError,copy_reg.pickle_complex,"myargu") obj2 = myCustom2() AssertError(AttributeError,copy_reg.pickle_complex,obj2)