Permalink
Browse files

Add beginnings of some gizmo test coverage

  • Loading branch information...
1 parent 05b652c commit 06c78c6f721f79ae5d72e4da0b6b966bbcb99fbf @richo committed Jan 4, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/test_gizmo_request.py
@@ -0,0 +1,12 @@
+from unittest import TestCase
+
+from groundstation.transfer.request import Request
+
+class TestGizmoRequest(TestCase):
+ def test_loadable_after_serializing(self):
+ gizmo = Request("LISTALLOBJECTS")
+
+ def test_rejects_invalid_verbs(self):
+ with self.assertRaises(Exception):
+ gizmo = Request("THISWILLNEVERBEAVALIDVERB")
+

0 comments on commit 06c78c6

Please sign in to comment.