david / django-roa (http://welldev.org/)
Turn your models into remote resources that you can access through Django's ORM. ROA stands for Resource Oriented Architecture.
| commit 115: | 1aafd871e0a0 |
| parent 114: | 9c6ba819c7b7 |
| branch: | default |
More unicode tests
12 months ago
Changed (Δ236 bytes):
raw changeset »
examples/django_roa_client/tests.py (9 lines added, 3 lines removed)
Up to file-list examples/django_roa_client/tests.py:
| … | … | @@ -111,11 +111,17 @@ class ROABaseTests(ROATestCase): |
111 |
111 |
class ROAUnicodeTests(ROATestCase): |
112 |
112 |
|
113 |
113 |
def test_remotepage(self): |
114 |
emilie = RemotePage.objects.create(title=u" |
|
114 |
emilie = RemotePage.objects.create(title=u"Émilie") |
|
115 |
115 |
self.assertEqual(emilie.title, u'Émilie') |
116 |
emilie = RemotePage.objects.get(title=u" |
|
116 |
emilie = RemotePage.objects.get(title=u"Émilie") |
|
117 |
117 |
self.assertEqual(emilie.title, u'Émilie') |
118 |
|
|
118 |
amelie = emilie |
|
119 |
amelie.title = u'Amélie' |
|
120 |
amelie.save() |
|
121 |
self.assertEqual(amelie.title, u'Amélie') |
|
122 |
amelie = RemotePage.objects.get(title=u"Amélie") |
|
123 |
self.assertEqual(amelie.title, u'Amélie') |
|
124 |
amelie.delete() |
|
119 |
125 |
|
120 |
126 |
|
121 |
127 |
class ROAFieldsTests(ROATestCase): |
