def METHOD_NAME(self):
    self.autocommit(self.conn)
    self.listen('foo')
    pid = int(self.notify('foo').communicate()[0])
    self.assertEqual(0, len(self.conn.notifies))
    self.conn.cursor().execute('select 1;')
    self.assertEqual(1, len(self.conn.notifies))
    self.assertEqual(pid, self.conn.notifies[0][0])
    self.assertEqual('foo', self.conn.notifies[0][1])