diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-09-01 15:00:30 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-09-03 09:11:53 +0200 |
commit | c7d8aca2de88b72e69921558e5cf708177ecd5bc (patch) | |
tree | 0ee0e5ad3709ae9f7e2a25c44171c66cf541a151 | |
parent | cbb9a2a65f900d961a50b9e1c51c20b8208a6b03 (diff) | |
download | samba-c7d8aca2de88b72e69921558e5cf708177ecd5bc.tar.gz |
python/tests: Add more assertions that we get back the value we expect
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11429
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Sep 1 17:00:53 CEST 2015 on sn-devel-104
(cherry picked from commit 5aefea842528d053b86b50ff2ed9047db1ca4594)
-rw-r--r-- | python/samba/tests/dcerpc/integer.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/samba/tests/dcerpc/integer.py b/python/samba/tests/dcerpc/integer.py index f4fa482d836..ca5d571b7e8 100644 --- a/python/samba/tests/dcerpc/integer.py +++ b/python/samba/tests/dcerpc/integer.py @@ -30,6 +30,7 @@ class IntegerTests(samba.tests.TestCase): def test_int_into_hyper(self): s = server_id.server_id() s.unique_id = 1 + self.assertEquals(s.unique_id, 1) def test_negative_int_into_hyper(self): s = server_id.server_id() @@ -52,6 +53,7 @@ class IntegerTests(samba.tests.TestCase): def test_int_into_int32(self): s = srvsvc.NetRemoteTODInfo() s.timezone = 5 + self.assertEquals(s.timezone, 5) def test_uint32_into_int32(self): s = srvsvc.NetRemoteTODInfo() @@ -62,6 +64,7 @@ class IntegerTests(samba.tests.TestCase): def test_long_into_int32(self): s = srvsvc.NetRemoteTODInfo() s.timezone = 5L + self.assertEquals(s.timezone, 5) def test_larger_long_int_into_int32(self): s = srvsvc.NetRemoteTODInfo() @@ -72,6 +75,7 @@ class IntegerTests(samba.tests.TestCase): def test_larger_int_into_int32(self): s = srvsvc.NetRemoteTODInfo() s.timezone = 2147483647 + self.assertEquals(s.timezone, 2147483647) def test_float_into_int32(self): s = srvsvc.NetRemoteTODInfo() @@ -88,6 +92,7 @@ class IntegerTests(samba.tests.TestCase): def test_negative_int_into_int32(self): s = srvsvc.NetRemoteTODInfo() s.timezone = -2147483648 + self.assertEquals(s.timezone, -2147483648) def test_negative_into_uint32(self): s = server_id.server_id() @@ -128,6 +133,7 @@ class IntegerTests(samba.tests.TestCase): def test_enum_into_uint16(self): g = misc.GUID() g.time_mid = misc.SEC_CHAN_DOMAIN + self.assertEquals(g.time_mid, misc.SEC_CHAN_DOMAIN) def test_bitmap_into_uint16(self): g = misc.GUID() |