Skip to content

Commit

Permalink
Added test for command_HELLO
Browse files Browse the repository at this point in the history
  • Loading branch information
ravench authored and raven committed Jul 25, 2015
1 parent 16de300 commit f2eb45b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions master/buildbot/test/unit/test_status_words.py
@@ -1,3 +1,4 @@
# 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 @@ -299,6 +300,14 @@ def test_command_hustle(self):
yield self.do_test_command('hustle', clock_ticks=[1.0] * 2, exp_usage=False)
self.assertEqual(self.actions, ['does the hustle'])

@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)

@defer.inlineCallbacks
def test_command_list(self):
yield self.do_test_command('list', exp_UsageError=True)
Expand Down

0 comments on commit f2eb45b

Please sign in to comment.