def test_set_get(self): c = Complex() c.real = 10.0 c.imaginary = 20.0 self.assertEqual(10.0, c.real) self.assertEqual(20.0, c.imaginary)