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