'Testing querying Gmail for emails.'

def testCreateQuery(self):

    iq = self.Iq()
    iq['type'] = 'get'
    iq['gmail']['search'] = 'is:starred'
    iq['gmail']['newer-than-time'] = '1140638252542'
    iq['gmail']['newer-than-tid'] = '11134623426430234'
    self.check(iq, '\n                                        <iq    type="get">\n                                                <query    xmlns="google:mail:notify"\n                                                                            newer-than-time="1140638252542"\n                                                                            newer-than-tid="11134623426430234"\n                                                                            q="is:starred"    />\n                                        </iq>\n                                ', use_values=False)
