def METHOD_NAME(self):
    """
    Summary:     Check that rpm writes into /var/log/messages
    Expected:    There should be some RPM prefixed entries in the above file.
    Product:     BSPs
    Author:      Alexandru Georgescu <alexandru.c.georgescu@intel.com>
    Author:      Alexander Kanavin <alex.kanavin@gmail.com>
    AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
    """
    db_files_cmd = 'ls /var/lib/rpm/__db.*'
    check_log_cmd = "grep RPM /var/log/messages | wc -l"
    # Make sure that some database files are under /var/lib/rpm as '__db.xxx'
    status, output = self.target.run(db_files_cmd)
    msg =  'Failed to find database files under /var/lib/rpm/ as __db.xxx'
    self.assertEqual(0, status, msg=msg)
    self.tc.target.copyTo(self.test_file, self.dst)
    # Remove the package just in case
    self.target.run('rpm -e base-passwd-doc')
    # Install/Remove a package 10 times
    for i in range(10):
        status, output = self.target.run('rpm -ivh /tmp/base-passwd-doc.rpm')
        msg = 'Failed to install base-passwd-doc package. Reason: {}'.format(output)
        self.assertEqual(0, status, msg=msg)
        status, output = self.target.run('rpm -e base-passwd-doc')
        msg = 'Failed to remove base-passwd-doc package. Reason: {}'.format(output)
        self.assertEqual(0, status, msg=msg)
    self.tc.target.run('rm -f %s' % self.dst)