~fginther/helipad/add-missing-coverage-data-file

« back to all changes in this revision

Viewing changes to tests/unit/test_cu2d_stack.py

  • Committer: Allan LeSage
  • Date: 2013-07-12 20:16:27 UTC
  • Revision ID: allan.lesage@canonical.com-20130712201627-gpj2twk154g7lwpn
Initial commit, trunk r118.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
from django.test import TestCase
 
3
from ci.models import Cu2dStack
 
4
 
 
5
 
 
6
class TestCu2dStack(TestCase):
 
7
 
 
8
    def test_unicode(self):
 
9
        result = Cu2dStack.objects.create(
 
10
            name='short-stack-of-wheat')
 
11
        self.assertEqual('short-stack-of-wheat', str(result))