示例#1
0
class CertificationBaseTestCase(TestCase):
    def setUp(self):
        self.cert = CertificateBase()

    def test_create(self):
        with self.assertRaises(NotImplementedError):
            self.cert.create()

    def test_get(self):
        with self.assertRaises(NotImplementedError):
            self.cert.get()

    def test_delete(self):
        with self.assertRaises(NotImplementedError):
            self.cert.delete()

    def test_verify(self):
        with self.assertRaises(NotImplementedError):
            self.cert.verify()
示例#2
0
class CertificationBaseTestCase(TestCase):

    def setUp(self):
        self.cert = CertificateBase()

    def test_create(self):
        with self.assertRaises(NotImplementedError):
            self.cert.create()

    def test_get(self):
        with self.assertRaises(NotImplementedError):
            self.cert.get()

    def test_delete(self):
        with self.assertRaises(NotImplementedError):
            self.cert.delete()

    def test_verify(self):
        with self.assertRaises(NotImplementedError):
            self.cert.verify()
示例#3
0
 def setUp(self):
     self.cert = CertificateBase()
示例#4
0
 def setUp(self):
     self.cert = CertificateBase()