def test_no_from_date_param(self):
    mock_application = Mock(spec=Application)
payload_request = HTTPRequest(method='GET', uri='/test', headers=None, body
    =None)
handler = SomeHandler(mock_applciation, payload_request)
with self.assertRaises(ValueError):
    yield handler.get()
How to write unit tests for python tornado application?