Revision 1f0370c9 kamaki/clients/tests/astakos.py

b/kamaki/clients/tests/astakos.py
31 31
# interpreted as representing official policies, either expressed
32 32
# or implied, of GRNET S.A.
33 33

  
34
from unittest import TestCase
35

  
36
from kamaki.clients.tests import configuration
34
from kamaki.clients import tests
37 35
from kamaki.clients.astakos import AstakosClient as astakos
38 36

  
39 37

  
40
class testAstakos(TestCase):
38
class Astakos(tests.Generic):
41 39
    def setUp(self):
42
        self.cnf = configuration('astakos')
43
        self.client = astakos(self.cnf.url, self.cnf.token)
40
        self.client = astakos(
41
            self['astakos', 'url'],
42
            self['astakos', 'token'])
44 43

  
45 44
    def tearDown(self):
46 45
        pass
47 46

  
48 47
    def test_authenticate(self):
49 48
        r = self.client.authenticate()
50
        for term in ('username',
49
        for term in (
50
            'username',
51 51
            'auth_token_expires',
52 52
            'auth_token',
53 53
            'auth_token_created',

Also available in: Unified diff