Пример #1
0
 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_)
Пример #2
0
 def test_default_init(self):
     obj = nonza.SMEnabled()
     self.assertFalse(obj.resume)
     self.assertIsNone(obj.id_)
     self.assertIsNone(obj.location)
     self.assertIsNone(obj.max_)