File: test_confstore.py

package info (click to toggle)
pybik 0.5-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 776 kB
  • sloc: python: 4,591; makefile: 4; sh: 1
file content (27 lines) | stat: -rw-r--r-- 697 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/python
#-*- coding:utf-8 -*-

import sys, os

sys.path.insert(0, os.path.dirname(__file__)+'/..')
from pybiklib.confstore import confstore


#FIXME: this file contains no useful infos yet, included in .bzrignore

def test_changed_by_other(self):
    confstore.dimension = 3
    #call(('gconftool', ...))
    assert confstore.dimension = 4, confstore.dimension

def test_tmp():
    print 'confstore.saved_moves: %r' % confstore.saved_moves
    print 'confstore.saved_pos: %r' % confstore.saved_pos
    assert confstore.saved_moves == "llr'u2' b2", repr(confstore.saved_moves)
    assert confstore.saved_pos == 3
    

if __name__ == '__main__':
    import nose
    nose.runmodule()