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