don't force formatted commands to uppercase

This commit is contained in:
jesopo 2020-03-23 16:58:56 +00:00
parent e3a7af789b
commit 5b998e816f
2 changed files with 4 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class Line(object):
if self.source:
outs.append(f":{self.source}")
outs.append(self.command.upper())
outs.append(self.command)
params = self.params.copy()
if self.params:

View File

@ -30,6 +30,9 @@ class FormatTestSource(unittest.TestCase):
class FormatTestCommand(unittest.TestCase):
def test_lowercase(self):
line = irctokens.build("privmsg").format()
self.assertEqual(line, "privmsg")
def test_uppercase(self):
line = irctokens.build("PRIVMSG").format()
self.assertEqual(line, "PRIVMSG")
class FormatTestTrailing(unittest.TestCase):