1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

Make avatar test pass, ans add some other basic tests.

This commit is contained in:
xiez
2012-08-08 10:09:02 +08:00
parent 872050d98a
commit 94b1d26409
8 changed files with 194 additions and 86 deletions

View File

@@ -5,12 +5,19 @@ when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
# from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
# class SimpleTest(TestCase):
# def test_basic_addition(self):
# """
# Tests that 1 + 1 always equals 2.
# """
# self.assertEqual(1 + 1, 2)
from django.utils import unittest
class SimpleTestCase(unittest.TestCase):
def test_base_addition(self):
self.assertEqual(1 + 1, 2)