示例#1
0
 def test_known_lower_case_entry_id(self):
     s = GetDataFromPdbeAPi(entry_id='atp',
                            end_point='compounds').return_data()
     self.assertNotEqual(s, dict())
示例#2
0
 def test_null_entry(self):
     s = GetDataFromPdbeAPi(entry_id=None,
                            end_point='compounds').return_data()
     self.assertEqual(s, dict())
示例#3
0
 def test_unknown_entry_id(self):
     s = GetDataFromPdbeAPi(entry_id='XXXXXXXXXXX',
                            end_point='compounds').return_data()
     self.assertEqual(s, dict())
示例#4
0
 def test_unknown_end_point(self):
     s = GetDataFromPdbeAPi(entry_id='ATP',
                            end_point='cheese').return_data()
     self.assertEqual(s, dict())
示例#5
0
 def test_null_end_point(self):
     s = GetDataFromPdbeAPi(entry_id='ATP', end_point=None).return_data()
     self.assertEqual(s, dict())
示例#6
0
 def test_incorrect_server_url(self):
     s = GetDataFromPdbeAPi(
         entry_id='ATP',
         end_point='compounds',
         server_root='https://www.ebiWRONG.ac.uk/pdbe/api/').return_data()
     self.assertEqual(s, dict())
示例#7
0
 def test_null_server(self):
     s = GetDataFromPdbeAPi(entry_id='ATP',
                            end_point='compounds',
                            server_root=None).return_data()
     self.assertEqual(s, dict())