Beispiel #1
0
 def test_check_id_success(self):
     native._check_id(u'\u222b', 'Compound')
Beispiel #2
0
 def test_check_id_not_string(self):
     with self.assertRaises(native.ParseError):
         native._check_id(False, 'Compound')
Beispiel #3
0
 def test_check_id_empty_string(self):
     with self.assertRaises(native.ParseError):
         native._check_id('', 'Reaction')
Beispiel #4
0
 def test_check_id_none(self):
     with self.assertRaises(native.ParseError):
         native._check_id(None, 'Compound')
Beispiel #5
0
 def test_check_id_success(self):
     native._check_id(u'\u222b', 'Compound')
Beispiel #6
0
 def test_check_id_empty_string(self):
     with self.assertRaises(native.ParseError):
         native._check_id('', 'Reaction')
Beispiel #7
0
 def test_check_id_not_string(self):
     with self.assertRaises(native.ParseError):
         native._check_id(False, 'Compound')
Beispiel #8
0
 def test_check_id_none(self):
     with self.assertRaises(native.ParseError):
         native._check_id(None, 'Compound')