Skip to content

Commit

Permalink
Changed the command_HELLO test to using words.GREETINGS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravench authored and raven committed Jul 25, 2015
1 parent f52fcd0 commit 72907c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions master/buildbot/test/unit/test_status_words.py
@@ -1,4 +1,3 @@
# coding: utf-8
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
Expand Down Expand Up @@ -302,11 +301,10 @@ def test_command_hustle(self):

@defer.inlineCallbacks
def test_command_hello(self):
greetings = ["ږغ كول ، هركلى كول ږغ، هركلى", "Goeie dag", "Tungjatjeta", "Yatasay", "Ahlan bik", "Voghdzuyin", "hola", "kaixo", "Horas", "Pryvitańnie", "Nomoskar", "Oki", "Selam", "Dez-mat", "Zdrávejte", "Mingala ba", "Hola", "Hafa dai", "Oh-see-YOH", "Nín hao", "Bonjou", "Zdravo", "Nazdar", "Hallo", "Hallo", "Iiti", "Kotáka", "Saluton", "Tere", "Hallo", "Hallo", "Bula", "Helo", "Hei", "Goede morgen", "Bonjour", "Hoi", "Ola", "Gamardžoba", "Guten Tag", "Mauri", "Geia!", "Inuugujoq", "Kem cho", "Sannu", "Aloha", "Shalóm", "Namasté", "Szia", "Halló", "Hai", "Kiana", "Dia is muire dhuit", "Buongiorno", "Kónnichi wa", "Salam", "Annyeonghaseyo", "Na", "Sabai dii", "Ave", "Es mīlu tevi", "Labas.", "Selamat petang", "Ni hao", "Kia ora", "Yokwe", "Kwe", "sain baina uu", "niltze", "Yá'át'ééh", "Namaste", "Hallo.", "Salâm", "Witajcie", "Olá", "Kâils", "Aroha", "Salut", "Privét", "Talofa", "Namo namah", "ćao", "Nazdar", "Zdravo", "Hola", "Jambo", "Hej", "Sälü", "Halo", "Selam", "Sàwàtdee kráp", "Dumela", "Merhaba", "Pryvít", "Adaab arz hai", "Chào", "Glidis", "Helo", "Sawubona", "Hoi"]
yield self.do_test_command('hello', exp_usage=False)
self.assertEqual(self.sent, ['yes?'])
yield self.do_test_command('hello', exp_usage=False)
self.assertIn(self.sent[0], greetings)
self.assertIn(self.sent[0], words.GREETINGS)

@defer.inlineCallbacks
def test_command_list(self):
Expand Down

0 comments on commit 72907c6

Please sign in to comment.