def test_compress_dash(self): original = "i3-workspace-names-daemon" expected = "i3-wor-nam-dae" actual = compress(original) self.assertEqual(expected, actual)
def test_compress_trailing_double(self): original = "i3-workspace-names-daemon__" expected = "i3-wor-nam-dae_" actual = compress(original) self.assertEqual(expected, actual)
def test_compress_short(self): original = "a-b-c-d" expected = "a-b-c-d" actual = compress(original) self.assertEqual(expected, actual)
def test_compress_mixed(self): original = "i3-workspace_names_daemon" expected = "i3-wor_nam_dae" actual = compress(original) self.assertEqual(expected, actual)