def test_known_lower_case_entry_id(self): s = GetDataFromPdbeAPi(entry_id='atp', end_point='compounds').return_data() self.assertNotEqual(s, dict())
def test_null_entry(self): s = GetDataFromPdbeAPi(entry_id=None, end_point='compounds').return_data() self.assertEqual(s, dict())
def test_unknown_entry_id(self): s = GetDataFromPdbeAPi(entry_id='XXXXXXXXXXX', end_point='compounds').return_data() self.assertEqual(s, dict())
def test_unknown_end_point(self): s = GetDataFromPdbeAPi(entry_id='ATP', end_point='cheese').return_data() self.assertEqual(s, dict())
def test_null_end_point(self): s = GetDataFromPdbeAPi(entry_id='ATP', end_point=None).return_data() self.assertEqual(s, dict())
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())
def test_null_server(self): s = GetDataFromPdbeAPi(entry_id='ATP', end_point='compounds', server_root=None).return_data() self.assertEqual(s, dict())