Spurce up tests a bit

rtd2
Eric Holscher 2010-08-14 07:48:59 -05:00
parent 359e61408d
commit 1ae1717467
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from django.core.urlresolvers import reverse
import json
from projects.models import Conf
data = """
{
@ -59,4 +60,8 @@ class Basic(TestCase):
def test_github(self):
resp = self.client.post('/github', {'payload': data})
self.assertEqual(Conf.objects.count(), 1)
conf = Conf.objects.all()[0]
self.assertEqual(conf.theme, 'default')
self.assertTrue(conf.path is not None)