def test_init(self): obj = nonza.SMResumed(counter=1, previd="foobar") self.assertEqual(1, obj.counter) self.assertEqual("foobar", obj.previd)
def test_default_init(self): with self.assertRaises(TypeError): nonza.SMResumed()