mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-05 09:50:54 -05:00
TranslateParty: clean up tests
- Remove reference to "WTE" - Remove Python 2 check.
This commit is contained in:
parent
9378aca10f
commit
d4e75618d6
@ -34,15 +34,13 @@ from sys import version_info
|
||||
class TranslatePartyTestCase(PluginTestCase):
|
||||
plugins = ('TranslateParty',)
|
||||
|
||||
@unittest.skipIf(version_info[0] < 3,
|
||||
"Not supported on Python 2 (severe Unicode handling problems)")
|
||||
@unittest.skipUnless(network, "Network-based tests have been disabled via "
|
||||
"--no-network")
|
||||
def testTranslateParty(self):
|
||||
inp = "The quick brown fox jumps over the lazy dog."
|
||||
for _ in range(2):
|
||||
m = self.getMsg("tp %s" % inp)
|
||||
print('\nTranslateParty Input: %s\nWTE Response: %s' % (inp, m.args[1]))
|
||||
print('\nTranslateParty input: %s\nTranslateParty response: %s' % (inp, m.args[1]))
|
||||
assert m, 'No response found.'
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
||||
|
Loading…
x
Reference in New Issue
Block a user