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