Beispiel #1
0
def list_interchains_v1(blockchain: str,
                        **kwargs) -> Tuple[str, int, Dict[str, str]]:
    return helpers.flask_http_response(
        200, interchain.list_interchain_v1(blockchain))
 def test_list_interchain(self, mock_get_output, mock_list):
     self.assertEqual(interchain.list_interchain_v1("test"),
                      {"interchains": ["blah"]})
     mock_get_output.assert_called_once()
     mock_list.assert_called_once_with("test")