From 4e8f1d217ef8b9ac8bc9af2b4aa28c49266ea5fb Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 17 Jul 2013 17:37:11 +0100 Subject: [PATCH] Forgot to test the answer buttons too! --- tests/test_rest_app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_rest_app.py b/tests/test_rest_app.py index 09acbee..d6101d1 100644 --- a/tests/test_rest_app.py +++ b/tests/test_rest_app.py @@ -333,6 +333,7 @@ class DeckHandlerTest(CollectionTestBase): self.assertEqual(ret['nid'], note_id) self.assertEqual(ret['question'], 'The front') self.assertEqual(ret['answer'], 'The front\n\n
\n\nThe back') + self.assertEqual(ret['answer_buttons'], [(1, 'Again', 60), (2, 'Good', 600), (3, 'Easy', 345600)]) if __name__ == '__main__': unittest.main()