Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-client / astakosclient @ bc56a641

Name Size
__init__.py 3.9 kB
tests.py 8.5 kB

Latest revisions

# Date Author Comment
cbc0b438 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement low-level _callAstakos function

This function will handle all requests to Astakos.
On top of this we should build high level wrapper
functions to handle more specific calls/requests
to Astakos. _callAstakos function should log
every single action.

f8388a90 03/12/2013 03:54 pm Ilias Tsitsimpis

Separate actual _doRequest from _callAstakos

Creating a new function `_doRequest' to handle
the actual requests to astakos service makes
it easy to mock it later for unit testing
our module.

57ba2dfc 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement the mocked _doRequest for unit testing

When unit testing our astakos-client module we have to
replace it's _doRequest function with some dummy ones.
In this commit we create this dummy functions that are
going to be used through our tests.

bc56a641 03/12/2013 03:54 pm Ilias Tsitsimpis

First test for _callAstakos, raise socket error

The first unit test for _callAstakos function, checks
the answer when there is no internet connection
(should raise a socket exception).

99165736 02/25/2013 03:42 pm Christos Stavrakakis

Initialize snf-astakos-client

View revisions

Also available in: Atom