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