def test_write_to_user_data_directory(self):

        self.ETSConfig.company = 'Blah'
        dirname = self.ETSConfig.user_data

        path = os.path.join(dirname, 'dummy.txt')
        data = str(time.time())

        f = open(path, 'w')
        f.write(data)
        f.close()

        self.assertEqual(os.path.exists(path), True)

        f = open(path)
        result = f.read()
        f.close()

        os.remove(path)

        self.assertEqual(data, result)

        return


# For running as an individual set of tests.
write to user data directory
dataset/ETHPy150Open enthought/traits/traits/etsconfig/tests/test_etsconfig.py/ETSConfigTestCase.test_write_to_user_data_directory