Commit 15c05405 by Felipe Lavratti

Added `testCanRemoveField`

parent 8446b1d7
......@@ -144,6 +144,13 @@ class TestObject(unittest.TestCase):
self.assertTrue(GameScore.Query.filter(score=previous_score + 1).exists(),
'Failed to increment score on backend')
def testCanRemoveField(self):
self.score.save()
self.score.remove('score')
self.assertTrue(GameScore.Query.filter(score=None).exists(),
'Failed to remove score on backend')
def testAssociatedObject(self):
"""test saving and associating a different object"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment