Beispiel #1
0
 def test_post_numbers(self):
     """Verify `/document/PREFIX/numbers` works (JSON)."""
     data = server.post_numbers('prefix')
     self.assertEqual({'next': 123}, data)
Beispiel #2
0
 def test_post_numbers(self):
     """Verify `/document/PREFIX/numbers` works (JSON)."""
     data = server.post_numbers('prefix')
     self.assertEqual({'next': 123}, data)
Beispiel #3
0
 def test_post_numbers(self):
     """Verify `/document/PREFIX/numbers` works (HTML)."""
     text = server.post_numbers('prefix')
     self.assertEqual("42", text)
     self.assertEqual(43, self.server.numbers['prefix'])
Beispiel #4
0
 def test_post_numbers(self):
     """Verify `/document/PREFIX/numbers` works (HTML)."""
     text = server.post_numbers('prefix')
     self.assertEqual("42", text)
     self.assertEqual(43, self.server.numbers['prefix'])