Revision 09c936a7

b/logic/credits.py
1
__author__ = 'bkarak'
1
#
2
# Business Logic for all Credit related activity
3
#
4
# Copyright 2010 Greek Research and Technology Network
5
#
6

  
b/logic/tests.py
1
"""
2
This file demonstrates two different styles of tests (one doctest and one
3
unittest). These will both pass when you run "manage.py test".
4

  
5
Replace these with more appropriate tests for your application.
6
"""
7

  
8
from django.test import TestCase
9

  
10
class SimpleTest(TestCase):
11
    def test_basic_addition(self):
12
        """
13
        Tests that 1 + 1 always equals 2.
14
        """
15
        self.failUnlessEqual(1 + 1, 2)
16

  
17
__test__ = {"doctest": """
18
Another way to test that 1 + 1 is equal to 2.
19

  
20
>>> 1 + 1 == 2
21
True
22
"""}
23

  
1
#
2
# Unit Tests for logic
3
#
4
# Provides automated tests for logic module
5
#
6
# Copyright 2010 Greek Research and Technology Network
7
#
b/settings.py.dist
115 115
    'synnefo.ui',
116 116
    'synnefo.db',
117 117
    'synnefo.ganeti',
118
    'synnefo.logic',
118 119
)
119 120

  
120 121
GANETI_CLUSTER_INFO = ("62.217.120.78",5080,"synnefo","ocean!")

Also available in: Unified diff