def test_1_valid_md5(self):

        test_file = os.path.abspath(__file__)

        f = file(test_file, 'rb')

        m = hashlib.md5()
        while True:
            file_data = f.read(8096)
            if not file_data:
                break
            m.update(file_data)
        f.close()

        md5sum = m.hexdigest()
        url = "file://" + test_file

        local_file = self.update_inst._get_to_local_file(url, md5sum)

        # Compare md5 against original

        f = file(local_file)

        m = hashlib.md5()
        while True:
            file_data = f.read(8096)
            if not file_data:
                break
            m.update(file_data)
        f.close()

        os.unlink(local_file)

        self.assertEqual(md5sum, m.hexdigest())
Make sure that kwargs conflicting with args don't pass through.
dataset/ETHPy150Open rackerlabs/openstack-guest-agents-unix/tests/test_update_command.py/TestUpdateCommand.test_1_valid_md5--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/logger/test/test_logger.py/LoggerTests.test_conflictingKwargs