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.

Clone this repository (size: 560.7 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/django-roa

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"\xc9milie")
114
        emilie = RemotePage.objects.create(title=u"Émilie")
115
115
        self.assertEqual(emilie.title, u'Émilie')
116
        emilie = RemotePage.objects.get(title=u"\xc9milie")
116
        emilie = RemotePage.objects.get(title=u"Émilie")
117
117
        self.assertEqual(emilie.title, u'Émilie')
118
        emilie.delete()
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):