0.12.6 add unittest to dei_args()
This commit is contained in:
parent
e5a8c6bd61
commit
d0701599fe
5 changed files with 41 additions and 11 deletions
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from suou.strtools import PrefixIdentifier
|
||||
|
|
@ -27,14 +25,11 @@ class TestStrtools(unittest.TestCase):
|
|||
|
||||
def test_PrefixIdentifier_get_nostr(self):
|
||||
with self.assertRaises(TypeError):
|
||||
pi = PrefixIdentifier(1)
|
||||
pi.hello
|
||||
PrefixIdentifier(1)
|
||||
|
||||
with self.assertRaises(TypeError):
|
||||
PrefixIdentifier([99182])
|
||||
|
||||
with self.assertRaises(TypeError):
|
||||
PrefixIdentifier(b'alpha_')
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue