]> wagnertech.de Git - SVBaL.git/blob - python/eh_util/eh_app/tests.py
dd8e750daa39753f7a3fae9791cc0d21b6b22a25
[SVBaL.git] / python / eh_util / eh_app / tests.py
1 from django.test import TestCase
2
3 # Create your tests here.
4
5 class TestConfig(TestCase):
6     def test_setter(self):
7         from .AWK import config
8         cf = config.getInstance("svbal")
9         cf.setConfig("bla", "blub")
10         
11         val = cf.getConfig("bla")
12         assert (val == "blub")
13
14 '''
15 class TestQModel(TestCase):
16     def test_allinstances(self):
17         
18         from .AWK import config
19         config.getInstance("svbal")
20
21         from eh_app.qmodels import Mitglied
22         
23         config.getInstance("svbal")
24         
25         data = Mitglied.objects.all()
26         print (data)
27 '''