def test_init_args(self): k = caps390.Key("algo", b"digest") self.assertEqual( k.algo, "algo", ) self.assertEqual( k.digest, b"digest", )
def test_init_default(self): with self.assertRaises(TypeError): caps390.Key()
def test_init_args(self): k = caps390.Key("algo", b"digest") self.assertEqual( k.algo, "algo", ) self.assertEqual( k.digest, b"digest", )
def test_init_default(self): with self.assertRaises(TypeError): caps390.Key()