def test_hyper_into_int64(self): s = samr.DomInfo1() def assign(): s.max_password_age = server_id.SERVERID_UNIQUE_ID_NOT_TO_VERIFY self.assertRaises(OverflowError, assign)
def test_larger_negative_int_into_int64(self): s = samr.DomInfo1() s.max_password_age = -2147483649 self.assertEquals(s.max_password_age, -2147483649L)
def test_larger_int_into_int64(self): s = samr.DomInfo1() s.max_password_age = server_id.NONCLUSTER_VNN self.assertEquals(s.max_password_age, 0xFFFFFFFFL)
def test_negative_int_into_int64(self): s = samr.DomInfo1() s.max_password_age = -5 self.assertEquals(s.max_password_age, -5)
def test_int_into_int64(self): s = samr.DomInfo1() s.max_password_age = 5 self.assertEquals(s.max_password_age, 5)