mirror of https://github.com/jesopo/irctokens
don't force formatted commands to uppercase
This commit is contained in:
parent
e3a7af789b
commit
5b998e816f
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue