1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00

python: Use samba.tests.TestCase, make sure base class tearDown and

setUp methods are called, fix formatting.
This commit is contained in:
Jelmer Vernooij
2010-06-19 18:58:18 +02:00
parent 105ebb3440
commit c92db7b6dc
28 changed files with 107 additions and 80 deletions

View File

@@ -17,13 +17,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import unittest
from samba.dcerpc import misc
import samba.tests
text1 = "76f53846-a7c2-476a-ae2c-20e2b80d7b34"
text2 = "344edffa-330a-4b39-b96e-2c34da52e8b1"
class GUIDTests(unittest.TestCase):
class GUIDTests(samba.tests.TestCase):
def test_str(self):
guid = misc.GUID(text1)
@@ -45,7 +45,7 @@ class GUIDTests(unittest.TestCase):
self.assertEquals(guid1, guid2)
class PolicyHandleTests(unittest.TestCase):
class PolicyHandleTests(samba.tests.TestCase):
def test_init(self):
x = misc.policy_handle(text1, 1)