IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit b290c6c7 authored by Emi Simpson's avatar Emi Simpson
Browse files

[new arch] Add tests for query request equality

parent 2cbec3db
Pipeline #856 passed with stage
in 55 seconds
......@@ -12,6 +12,20 @@ class TestQueries(unittest.TestCase):
return Noop(1337)
return atr
def test_query_request_equality(self):
self.assertEqual(
QueryRequest(' hewwo\tworld', (1, 2)),
QueryRequest('hewwo world', (1, 2))
)
self.assertNotEqual(
QueryRequest(' a hewwo\tworld', (1, 2)),
QueryRequest('hewwo world', (1, 2))
)
self.assertNotEqual(
QueryRequest(' hewwo\tworld', (2,)),
QueryRequest('hewwo world', (1, 2))
)
def test_noop(self):
str_noop = Noop("hello")
self.assertEqual(str_noop.get_query(), ('', ('hello',)))
......
Supports Markdown
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