def test_init(self): obj = nonza.SMEnabled(resume=True, id_="foobar", location=("bar", 1234), max_=1023) self.assertTrue(obj.resume) self.assertEqual("foobar", obj.id_) self.assertEqual(("bar", 1234), obj.location) self.assertEqual(1023, obj.max_)
def test_default_init(self): obj = nonza.SMEnabled() self.assertFalse(obj.resume) self.assertIsNone(obj.id_) self.assertIsNone(obj.location) self.assertIsNone(obj.max_)