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