<commit_before>import unittest
import datetime
import os

from pyiem import mrms


class TestDatatypes(unittest.TestCase):

    def test_get_fn(self):
        """ Test filename func """<commit_msg>increase mrms.py coverage<commit_after>import unittest
import datetime
import os

from pyiem import mrms


class TestDatatypes(unittest.TestCase):

    def test_colorramp(self):
        """See what we can do with a colorramp"""
        c = mrms.make_colorramp()
        self.assertEqual(len(c), 256*3)

    def test_write_worldfile(self):
        """see if we can write a world file"""
        mrms.write_worldfile('/tmp/bah.wld')

    def test_get_fn(self):
        """ Test filename func """
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.005797101449275362, 'mean_word_length': 3.4294871794871793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4087120', 'n_tokens_mistral': 228, 'n_tokens_neox': 218, 'n_words': 61}