Skip to content

Commit

Permalink
apps.extjshelpers.tests: Updated model tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
espenak committed Jul 25, 2011
1 parent 45e3e34 commit 2e1accf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devilry/apps/extjshelpers/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def test_to_extjsmodel(self):
js = restfulcls_to_extjsmodel(RestUser)
expected = """Ext.define('devilry.apps.extjshelpers.tests.SimplifiedUser', {
extend: 'Ext.data.Model',
requires: ['devilry.extjshelpers.RestProxy'],
fields: [{"type": "int", "name": "id"}, {"type": "auto", "name": "first"}, {"type": "auto", "name": "last"}, {"type": "auto", "name": "email"}, {"type": "int", "name": "score"}],
idProperty: 'id',
proxy: {
type: 'rest',
proxy: Ext.create('devilry.extjshelpers.RestProxy', {
url: '/restuser',
extraParams: {
getdata_in_qrystring: true,
Expand All @@ -67,7 +67,7 @@ def test_to_extjsmodel(self):
writer: {
type: 'json'
}
}
})
})"""
self.assertEquals(js, expected)

Expand Down

0 comments on commit 2e1accf

Please sign in to comment.