~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlimages/utest/test_model.py

  • Committer: Holger Rapp
  • Date: 2009-03-01 20:47:48 UTC
  • Revision ID: sirver@kallisto.local-20090301204748-h3ouqkp8zhv10ydq
First (working) commit of wlimages app, the app that will handle image uploading and managing. Uploading works now; images can only be uploaded once (with the same filename). Much stil missing. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python -tt
 
2
# encoding: utf-8
 
3
#
 
4
# File: utests/test_wl_markdown.py
 
5
#
 
6
# Created by Holger Rapp on 2009-02-28.
 
7
# Copyright (c) 2009 HolgerRapp@gmx.net. All rights reserved.
 
8
#
 
9
# Last Modified: $Date$
 
10
#
 
11
 
 
12
# Since we want to include something from one path up, 
 
13
# we append the parent path to sys.path
 
14
import sys; sys.path.append("..")
 
15
 
 
16
import unittest
 
17
 
 
18
from models import Image
 
19
 
 
20
class TestImages_TestUploading_ExceptCorrectResult(unittest.TestCase):
 
21
    def runTest(self):
 
22
        self.assertEqual(1,1)
 
23
 
 
24
 
 
25
if __name__ == '__main__':
 
26
    unittest.main()
 
27
    # k = TestWlMarkdown_WikiWordsInLink_ExceptCorrectResult()
 
28
    # unittest.TextTestRunner().run(k)
 
29