Permalink
Browse files

file full of bad syntax...

  • Loading branch information...
1 parent 1783601 commit e0c5e3a1d0c352bbc991d9ebb00eab053f2b0f64 @reedobrien reedobrien committed Dec 8, 2012
Showing with 14 additions and 14 deletions.
  1. +14 −14 lumin/tests/test_node.py
View
@@ -29,7 +29,7 @@ def test_default_acl(self):
def test_acl(self):
result = self._call_fut(request=self.request)
- acl = [['Allow', 'system.Everyone', u'view']]
+ acl = [['Allow', 'system.Everyone', 'view']]
self.assertEquals(result.__acl__, acl)
def test_factory_name(self):
@@ -84,25 +84,25 @@ def test_collection_get(self):
def test_collection_insert(self):
result = self._call_fut(request=self.request)
- result.insert({u'name': u'Foo'}, u'first user')
+ result.insert({'name': 'Foo'}, 'first user')
self.assertEquals(result._collection.count(), 1)
def test_collection_insert_duplicate_key(self):
result = self._call_fut(request=self.request)
- result.insert({u'name': u'Foo'}, u'first user')
- result.insert({u'name': u'Foo'}, u'first user')
+ result.insert({'name': 'Foo'}, 'first user')
+ result.insert({'name': 'Foo'}, 'first user')
self.assertEquals(result._collection.count(), 2)
- self.assertNotEquals(result._collection.find({"_id": u'first-user1'}), None)
+ self.assertNotEquals(result._collection.find({"_id": 'first-user1'}), None)
def test_collection_insert_duplicate_key_increment_false(self):
result = self._call_fut(request=self.request)
- result.insert({u'name': u'Foo'}, u'first user', increment=False)
- self.assertRaises(AssertionError, result.insert, {u'name': u'Bar'}, u'first user', increment=False)
+ result.insert({'name': 'Foo'}, 'first user', increment=False)
+ self.assertRaises(AssertionError, result.insert, {'name': 'Bar'}, 'first user', increment=False)
def test_collection_delete(self):
result = self._call_fut(request=self.request)
- result.insert({u'name': u'Foo'}, u'first user')
- result.delete(_id=u'first-user')
+ result.insert({'name': 'Foo'}, 'first user')
+ result.delete(_id='first-user')
self.assertEquals(result._collection.count(), 0)
# TODO
@@ -427,19 +427,19 @@ def test_history_with_fields(self):
def test_insert(self):
result = self._call_fut(request=self.request)
- result.insert({u'name': u'Foo'}, u'first user')
+ result.insert({'name': 'Foo'}, 'first user')
self.assertEquals(result._collection.count(), 2) # There's one created in `_call_fut`
def test_insert_duplicate_key(self):
result = self._call_fut(request=self.request)
- result.insert({u'name': u'Foo'}, u'first user')
- result.insert({u'name': u'Foo'}, u'first user')
+ result.insert({'name': 'Foo'}, 'first user')
+ result.insert({'name': 'Foo'}, 'first user')
self.assertEquals(result._collection.count(), 3) # There's one created in `_call_fut`
- self.assertNotEquals(result._collection.find({"_id": u'first-user1'}), None)
+ self.assertNotEquals(result._collection.find({"_id": 'first-user1'}), None)
def test_insert_duplicate_key_increment_false(self):
result = self._call_fut(request=self.request)
- result.insert({u'name': u'Foo'}, u'first user', increment=False)
+ result.insert({'name': 'Foo'}, 'first user', increment=False)
self.assertTrue(result.find(name="Foo").next().get("name", None) == "Foo")
def test_remove(self):

0 comments on commit e0c5e3a

Please sign in to comment.