def test_expansion_limit_offset(self): e = Expansion() e.add_property('quux', limit=5, offset=10) p = e.get_params() self.assertTrue(p == 'quux(limit:5,offset:10)' or p == 'quux(offset:10,limit:5)')
def test_expansion(self): e = Expansion('foo', 'bar', 'baz') e.add_property('bar', limit=5) p = sorted(e.get_params().split(',')) self.assertEqual(p, ['bar(limit:5)', 'baz', 'foo'])