Exemple #1
0
    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)
Exemple #2
0
 def test_larger_negative_int_into_int64(self):
     s = samr.DomInfo1()
     s.max_password_age = -2147483649
     self.assertEquals(s.max_password_age, -2147483649L)
Exemple #3
0
 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)
Exemple #4
0
 def test_negative_int_into_int64(self):
     s = samr.DomInfo1()
     s.max_password_age = -5
     self.assertEquals(s.max_password_age, -5)
Exemple #5
0
 def test_int_into_int64(self):
     s = samr.DomInfo1()
     s.max_password_age = 5
     self.assertEquals(s.max_password_age, 5)