~facundo/enjuewemela/trunk

« back to all changes in this revision

Viewing changes to enjuewemela/tests/test_detector.py

  • Committer: facundo at com
  • Date: 2011-07-31 16:49:14 UTC
  • mfrom: (72.1.7 some-fixes)
  • Revision ID: facundo@taniquetil.com.ar-20110731164914-0at88mfphkmzshgk
Lot of small fixes, more internationalization, better configglue usage, enhanced code quality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import sys
2
 
import  os
3
 
sys.path.append(os.path.abspath("."))
 
1
# This code is part of the 'enjuewemela' game
 
2
# License: GPLv3
 
3
# Main author: Facundo Batista
 
4
# Code, bug tracker, etc:
 
5
#   https://launchpad.net/enjuewemela/
 
6
#
 
7
"""Tests for the detector."""
4
8
 
5
9
import unittest
6
10
 
7
 
from logic_board import detect, generate_nonmatch_board, FakeBoard
 
11
from enjuewemela.logic_board import detect, generate_nonmatch_board, FakeBoard
8
12
 
9
13
class TestHorizontal(unittest.TestCase):
10
14
 
338
342
            b = generate_nonmatch_board()
339
343
            res = detect(FakeBoard(b))
340
344
            self.assertEqual(res, [])
341
 
 
342
 
 
343
 
if __name__ == '__main__':
344
 
    unittest.main()
345