def test_resume_update(self): a, b, c = Mobject(), Mobject(), Mobject() a.add(b) a.updating_suspended = True b.updating_suspended = True c.updating_suspended = False a.resume_updating() c.resume_updating() self.assertFalse(a.updating_suspended) self.assertFalse(b.updating_suspended) self.assertFalse(c.updating_suspended)
def test_add_returns_self(self): obj = Mobject() self.assertEqual(obj, obj.add())
def test_add_self_fails(self): obj = Mobject() with self.assertRaises(Exception): obj.add(obj)